On a personal note, I always mount /boot and /home as well before chroot'ing. That way I don't accidentally do something later assuming that they're mounted.
Probably should have replied to the comment with instructions.
Oh I'm sorry, I missed your last mount instruction because it's formatted with two commands on one line.
In your LVM on Luks configuration you must have encrypted /boot?
I got tired of having to figure this out every time I needed it, and it's too simple to automate/not completely possible, so I finally wrote it down. Maybe it can help someone else.
# Boot off a live usb or similar as if you're installing
# If you're more comfortable with a different keyboard layout
$ loadkeys dvorak
# populate the second argument of the cryptsetup command based on this
$ parted <<<'print'
# the third argument may be anything, it needn't be used later
$ cryptsetup open /dev/sda3 foobar
# check your volume groups to see what to mount
$ ls /dev/vg
# this device path is dependent on the volume group configuration
$ mount /dev/vg/root /mnt
# for good measure, also based on configuration
$ swapon /dev/vg/swap
# this mount can be confirmed in /mnt/etc/fstab
$ mount /dev/sda1 /mnt/esp
$ arch-chroot /mnt
# modify the system as needed
I don't make separate partitions for /boot or /home anymore as I always found it made more hassle. Certainly though, if you have those, they should be mounted as well.
4 comments
On a personal note, I always mount /boot and /home as well before chroot'ing. That way I don't accidentally do something later assuming that they're mounted.
Probably should have replied to the comment with instructions.
Oh I'm sorry, I missed your last mount instruction because it's formatted with two commands on one line.
In your LVM on Luks configuration you must have encrypted /boot?
I got tired of having to figure this out every time I needed it, and it's too simple to automate/not completely possible, so I finally wrote it down. Maybe it can help someone else.
I don't make separate partitions for /boot or /home anymore as I always found it made more hassle. Certainly though, if you have those, they should be mounted as well.