Skip to content

u/exegete_

In this archive from Apr 2017 to Dec 2023

3
posts
41
comments
0
media
293
score
1 saved before deletion

I used EFISTUB for awhile but kept running into issues with the entries getting messed up by my motherboard and having to go back and disable secure boot, and re-add them. Not sure what was happening. Switching to systemd-boot seemed to solve it.

2 points

I use btrfs so I have snap-pac to take pre/post snapshots for every pacman transaction.

I also have it so that kernel modules are symlinked after a kernel upgrade so I don't have to restart right away:

[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = linux

[Action]
Description = Symlinking old kernel modules...
When = PostTransaction
Exec = /usr/bin/bash -c "find /usr/lib/modules -xtype l -delete; ln -sv /.snapshots/$(snapper -c root list | awk 'END{print $1}')/snapshot/usr/lib/modules/$(uname -r) /usr/lib/modules/"

The following checks for packages not in a sync database (I use aurutils so I keep all packages installed in a local database). This tells me if a maintainer silently removed a package from a repository:

[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *

[Action]
Description = Checking for packages not in sync databases...
When = PostTransaction
Exec = /usr/bin/bash -c "for i in $(pacman -Qqm); do echo '-->' $i; done"

The following tells me if I accidentally did a partial upgrade (just do pacman -Syu and choose "no" and then install package - that's a partial upgrade!) and have packages that need to be updated:

[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *

[Action]
Description = Checking for packages that need to be upgraded...
When = PostTransaction
Exec = /usr/bin/bash -c "for i in $(pacman -Qqu); do echo '-->' $i; done"

Backup boot partition before upgrading kernel (isn't on btrfs so snap-pac won't back up):

[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = linux

[Action]
Description = Backing up /boot...
When = PreTransaction
Exec = /usr/bin/rsync -avzq --delete /boot /.bootbackup
9 points

It doesn't sync your local databases. If you do pacman -Sy and then pacman -S *package* it's (potentially) a partial upgrade. If you do checkupdates and pacman -S *package* it's not a partial upgrade.

Thus, you can check which packages are going to be updated without risking a partial upgrade.

2 points

Check out man 5 btrfs. It looks like nodatacow implies nodatasum (disables data checksumming for new files). Because of this, compression is disabled. All files created under nodatacow also have the NOCOW file attribute set, which is what you do with chattr +C.

You won't be able to mount some subvolumes with nodatacow and others with datacow if they are part of the same filesystem. See the note in MOUNT OPTIONS in man 5 btrfs.

1 points

"He" is used historically as genderless, although some people like to mix it up with "she" just to show it doesn't matter. I hate using "they" for singular. It feels wrong. "It" would be okay, except it doesn't apply for people.

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.