注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Talk:Rootfs over encrypted lvm"

From Funtoo
Jump to navigation Jump to search
(add notes about other known working systems)
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
from centos virtual machine known working config:
{{console|body=
 
###i## echo 'KERNEL=="sdc*", SYMLINK+="funtoo%n"' > /etc/udev/rules.d/01-funtoo.rules
lsblk says:
###i## rc-service udev restart
sda1 type:part /boot/efi
}}
sda2 type:part /boot
sda3 type:part
  luks-28c13 type:crypt
      cl-root type:lvm /
      cl-swap type:lvm [swap]
 
grub.cfg
strange set=root pointing to uuid of efi partition and set boot as uuid of boot partition....
&
set default_kernelopts="root=/dev/mapper/cl-root ro crashkernel=auto resume=/dev/mapper/cl-swap rd.lvm.lv=cl/root rd.luks.uuid=luks-28c13191-etc-f4 rd.lvm.lv=cl/swap rhgb "
 
/etc/crypttab
luks-28c13191-etc-f4 UUID=28c13191-etc-f4 none discard
 
/etc/fstab says
/dev/mapper/cl-root / xfs
uuid=omitted /boot
uuid=omitted /boot/efi
/dev/mapper/cl-swap swap swap
 
blkid says
/dev/mapper/cl-root: type="xfs"
/dev/mapper/luks-28c13191 TYPE="LVM2_member"
/dev/sda3 TYPE="crypto_LUKS"
/dev/sda1 type vfat
/dev/sda2
/dev/mapper/cl-swap: TYPE="swap"

Latest revision as of 01:10, December 4, 2020

root # echo 'KERNEL=="sdc*", SYMLINK+="funtoo%n"' > /etc/udev/rules.d/01-funtoo.rules
root # rc-service udev restart