This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 
                    os:lin-workstation [2022/01/26 11:38] 127.0.0.1 external edit  | 
                
                    os:lin-workstation [2023/02/08 15:19] (current) tomas [Nástroje]  | 
            ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Teams for Linux | + | |
| + | ====Install Ubuntu on encrypted physical volume==== | ||
| + | lsblk ## list disks\\ | ||
| + | DEV=/ | ||
| + | %%sgdisk --print $DEV%% ## list current partitions\\ | ||
| + | BOOTPAR=x; | ||
| + | %%sgdisk --new=$BOOTPAR: | ||
| + | #%%sgdisk -n $GRUBFS: | ||
| + | #%%sgdisk -n $EFIPAR: | ||
| + | sgdisk -n $PVPAR:0:0 -t $PVPAR:8301 -c $PVPAR: | ||
| + | sgdisk -p $DEV\\ | ||
| + | %%cryptsetup luksFormat --type=luks1 ${DEV}$BOOTPAR%%\\ | ||
| + | %%cryptsetup luksFormat --type=luks1 ${DEV}$PVPAR%%\\ | ||
| + | cryptsetup open ${DEV}$BOOTPAR LUKS_BOOT\\ | ||
| + | cryptsetup open ${DEV}$PVPAR rootfs_crypt\\ | ||
| + | mkfs.ext4 -L boot / | ||
| + | pvcreate / | ||
| + | vgcreate ubuntu-vg / | ||
| + | lvcreate -L 4G -n swap ubuntu-vg\\ | ||
| + | lvcreate -l 80%FREE -n root ubuntu-vg\\ | ||
| + | %%while [ ! -d / | ||
| + | INSTALL\\ | ||
| + | %%mount / | ||
| + | %%for n in proc sys dev etc/ | ||
| + | chroot /target\\ | ||
| + | mount -a\\ | ||
| + | apt install -y cryptsetup-initramfs\\ | ||
| + | %%echo " | ||
| + | %%echo " | ||
| + | mkdir / | ||
| + | dd if=/ | ||
| + | chmod 500 / | ||
| + | chmod 400 / | ||
| + | cryptsetup luksAddKey ${DEV}$BOOTPAR / | ||
| + | cryptsetup luksAddKey ${DEV}$PVPAR / | ||
| + | %%echo " | ||
| + | %%echo " | ||
| + | update-initramfs -u -k all\\ | ||
| + | |||
| + | ====Nástroje==== | ||
| + | '' | ||
| + | '' | ||
| + | |||
| + | ====Teams for Linux==== | ||