This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo 'CRYPTROOT=target=xps_system,source=/dev/disk/by-partlabel/xps_system' >> /etc/initramfs-tools/conf.d/cryptroot && \ | |
| echo 'export CRYPTSETUP=y' > /etc/initramfs-tools/conf.d/cryptsetup && \ | |
| echo "CRYPTSETUP=y" >> /usr/share/initramfs-tools/conf-hooks.d/cryptsetup && \ | |
| echo "CRYPTSETUP=y" >> /usr/share/initramfs-tools/conf-hooks.d/forcecryptsetup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| distname=xenial && \ | |
| cd /mnt/${distname} && \ | |
| sudo groot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /tmp && curl -s -L https://github.com/teejee2008/groot/releases/latest | egrep -o 'teejee2008/groot/releases/download/.*/groot-v[0-9.]*-amd64.run' | wget --base=http://github.com/ -i - -O groot-latest-amd64.run && sudo chmod a+x ./groot-latest-amd64.run && sudo ./groot-latest-amd64.run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| distname=xenial && \ | |
| sudo mkdir -p /mnt/${distname} && \ | |
| sudo mount /dev/mapper/xps_system -o subvol=@${distname} /mnt/${distname} && \ | |
| sudo mount /dev/mapper/xps_system -o subvol=@${distname}_home /mnt/${distname}/home && \ | |
| mp=/mnt/${distname}/boot && sudo mkdir -p ${mp} && sudo mount /dev/disk/by-partlabel/xps_boot_${distname} ${mp} && \ | |
| mp=/mnt/${distname}/boot/efi && sudo mkdir -p ${mp} && sudo mount /dev/disk/by-partlabel/xps_efi ${mp} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| distname=xenial && \ | |
| sudo mv -vf @ @${distname} && \ | |
| sudo mv -vf @home @${distname}_home |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo mkdir -p /mnt/btrfs && \ | |
| sudo mount /dev/mapper/xps_system /mnt/btrfs && \ | |
| cd /mnt/btrfs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo cryptsetup luksOpen /dev/disk/by-partlabel/xps_system xps_system |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo cryptsetup luksFormat /dev/disk/by-partlabel/xps_system && \ | |
| sudo cryptsetup luksOpen /dev/disk/by-partlabel/xps_system xps_system && \ | |
| sudo mkfs.btrfs -f /dev/mapper/xps_system |
NewerOlder