|
|
@ -2,7 +2,7 @@
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
apt-get -y install mdadm btrfs-tools cryptsetup
|
|
|
|
apt-get -y install mdadm cryptsetup
|
|
|
|
|
|
|
|
|
|
|
|
# returns /dev/md0 as root device
|
|
|
|
# returns /dev/md0 as root device
|
|
|
|
# returns /dev/md1 as boot device
|
|
|
|
# returns /dev/md1 as boot device
|
|
|
@ -21,12 +21,12 @@ unset md0pwd
|
|
|
|
chroot=/mnt/md0-unlocked
|
|
|
|
chroot=/mnt/md0-unlocked
|
|
|
|
|
|
|
|
|
|
|
|
# root device
|
|
|
|
# root device
|
|
|
|
mkfs.btrfs -f /dev/mapper/md0-unlocked
|
|
|
|
mkfs.ext4 -f /dev/mapper/md0-unlocked
|
|
|
|
mkdir /mnt/md0-unlocked
|
|
|
|
mkdir /mnt/md0-unlocked
|
|
|
|
mount /dev/mapper/md0-unlocked /mnt/md0-unlocked
|
|
|
|
mount /dev/mapper/md0-unlocked /mnt/md0-unlocked
|
|
|
|
|
|
|
|
|
|
|
|
# boot device
|
|
|
|
# boot device
|
|
|
|
mkfs.btrfs -f /dev/md1
|
|
|
|
mkfs.ext4 -f /dev/md1
|
|
|
|
mkdir "$chroot/boot"
|
|
|
|
mkdir "$chroot/boot"
|
|
|
|
mount /dev/md1 "$chroot/boot"
|
|
|
|
mount /dev/md1 "$chroot/boot"
|
|
|
|
|
|
|
|
|
|
|
|