commit 249bb971a60f54267ce2f4a31438fd9a969464ca from: Alexander Arch date: Wed Nov 06 14:51:05 2024 UTC add a note that unmounting encrypted disks in /etc/rc.shutdown is not really necessary commit - dbf9f489ff278279bd33426a9625716837e562ff commit + 249bb971a60f54267ce2f4a31438fd9a969464ca blob - b3c42d31c27d7113f427f3757481506471ac7b1b blob + 85ccc5c11dc21a830aa38f9a499cb05c18235859 --- art/011.openbsd_on_a_laptop.txt +++ art/011.openbsd_on_a_laptop.txt @@ -48,8 +48,9 @@ partition scheme that I made was adding a 1GB /hole pa 010.x11_isolation_2.txt). Setting up the second drive with FDE, and automatic mounting is a bit -more complicated. It has to be done with rc.local or rc.securelevel and -rc.shutdown (see rc(8)). +more complicated. It has to be done with rc.local or rc.securelevel. +(See rc(8).) If you really want to, you may also unmount it "manually" +via rc.shutdown. Having a second disk also allowed me to setup /altroot (see daily(8)). Since I am backing up stuff on the first drive to the second one, I @@ -76,6 +77,7 @@ My rc scripts look like this: for f in $FS; do fsck -p $f && mount -s $f; done } + # Not really necessary umount_second() { for f in $FS; do umount -f $f; done bioctl -d $DUID2 @@ -94,7 +96,7 @@ My rc scripts look like this: set_perms_speaker echo " done!" - /etc/rc.shutdown: + /etc/rc.shutdown (if you really want to): #!/bin/ksh . /etc/rc.local.subr