This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
os:lin-workstation [2023/02/08 13:19] tomas [Install Ubuntu on encrypted physical volume] |
os:lin-workstation [2023/02/08 15:19] (current) tomas [Nástroje] |
||
---|---|---|---|
Line 19: | Line 19: | ||
lvcreate -L 4G -n swap ubuntu-vg\\ | lvcreate -L 4G -n swap ubuntu-vg\\ | ||
lvcreate -l 80%FREE -n root ubuntu-vg\\ | lvcreate -l 80%FREE -n root ubuntu-vg\\ | ||
- | while [ ! -d / | + | %%while [ ! -d / |
INSTALL\\ | INSTALL\\ | ||
- | mount / | + | %%mount / |
%%for n in proc sys dev etc/ | %%for n in proc sys dev etc/ | ||
- | chroot /target | + | chroot /target\\ |
- | mount -a | + | mount -a\\ |
- | apt install -y cryptsetup-initramfs | + | apt install -y cryptsetup-initramfs\\ |
- | echo " | + | %%echo " |
- | echo " | + | %%echo " |
mkdir /etc/luks\\ | mkdir /etc/luks\\ | ||
dd if=/ | dd if=/ | ||
- | chmod u=rx, | + | chmod 500 / |
- | chmod u=r, | + | chmod 400 / |
- | cryptsetup luksAddKey ${DEV}y / | + | cryptsetup luksAddKey ${DEV}$BOOTPAR |
- | cryptsetup luksAddKey ${DEV}Z / | + | cryptsetup luksAddKey ${DEV}$PVPAR |
- | echo " | + | %%echo " |
- | echo "${DM}5_crypt | + | %%echo "rootfs_crypt |
update-initramfs -u -k all\\ | update-initramfs -u -k all\\ | ||
+ | |||
+ | ====Nástroje==== | ||
+ | '' | ||
+ | '' | ||
====Teams for Linux==== | ====Teams for Linux==== |