View previous topic :: View next topic |
Author |
Message |
ayeyes Tux's lil' helper
Joined: 03 Dec 2017 Posts: 104
|
Posted: Fri Jan 05, 2018 3:50 am Post subject: [SOLVED]BTRFS luks with bliss-initramfs fails to boot |
|
|
With the help of a Russian Redhat forum I managed to get it working with genkernel.
package.use
Code: | sys-boot/grub device-mapper
sys-kernel/genkernel cryptsetup |
Initramfs
Code: | genkernel --luks initramfs |
Genkernel 3.5.2.5 (~amd64) works fine.
fstab
Code: | /dev/sda1 /boot ext2 defaults,errors=remount-ro 1 2
LABEL=BTROOT / btrfs defaults,compress=lzo,subvol=@ 0 0
LABEL=BTROOT /home btrfs defaults,compress=lzo,subvol=@home 0 0
LABEL=BTROOT /.snapshots btrfs defaults,compress=lzo,subvol=@snapshots 0 0
/dev/mapper/cryptswap none swap defaults 0 0 |
dmcrypt
Code: | swap=cryptswap
source='/dev/sda3'
options='-c aes-xts-plain -s 512 -d /dev/random' |
blkid
Code: |
/dev/sda2: UUID="c1beb440-7673-448c-9a32-3a43968489df" TYPE="crypto_LUKS" PARTUUID="ddb0274d-02" |
grub.cfg
Code: | ### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-75bd9d59-b687-4bda-9f85-60023750992$
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 1670b716-ca81-447c-b83d-dcb074e7$
else
search --no-floppy --fs-uuid --set=root 1670b716-ca81-447c-b83d-dcb074e7febd
fi
echo 'Loading Linux 4.15.0-gentoo ...'
linux /vmlinuz-4.15.0-gentoo crypt_root=UUID=c1beb440-7673-448c-9a32-3a43968489df ro dobtrfs rootflags=subvol=@
echo 'Loading initial ramdisk ...'
initrd /initramfs-genkernel-x86_64-4.15.0-gentoo |
Followed the Snapper guide for Arch.
Code: | umount /.snapshots
rm -r /.snapshots
snapper -c root create-config /
mount -o defaults,compress=lzo,subvol=@snapshots /dev/mapper/root /.snapshots
chmod -R 750 /.snapshots |
/dev/mapper/gentoo becomes /dev/mapper/root when not chrooted.
btrfs-send does not work from the systemrescuecd beta 4. Have to boot the Arch installation usb for that. |
|
Back to top |
|
|
ayeyes Tux's lil' helper
Joined: 03 Dec 2017 Posts: 104
|
Posted: Fri Jun 15, 2018 10:23 pm Post subject: |
|
|
Update:
Works fine with bliss when using vault_0, and not your own name. Encrypted boot (subvolume) with keyfile works fine too.
Code: | menuentry "Gentoo - 3.9.9-FB.02" {
linux /kernels/3.9.9-FB.02/vmlinuz root=/dev/mapper/vault_0 enc_drives=/dev/sda4 enc_type=pass
options="compress=lzo,defaults,noatime,autodefrag,subvol=tank/root" triggers=luks quiet
initrd /kernels/3.9.9-FB.02/initrd |
https://ramsdenj.com/2016/04/05/using-btrfs-for-easy-backup-and-rollback.html
^ Is a better setup for snapshots. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|