From daa7916f4efb8ffce07290c18756d28f49d12aa9 Mon Sep 17 00:00:00 2001 From: lub Date: Fri, 20 Dec 2019 14:43:31 +0100 Subject: [PATCH] switch back to btrfs --- config/etc/fstab | 4 ++-- post-debootstrap-installer.sh | 2 +- setup.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/etc/fstab b/config/etc/fstab index 8bf0c1c..ba25a2b 100644 --- a/config/etc/fstab +++ b/config/etc/fstab @@ -3,5 +3,5 @@ # # -/dev/mapper/md0-unlocked / ext4 relatime 0 0 -/dev/md1 /boot ext4 relatime 0 0 +/dev/mapper/md0-unlocked / btrfs relatime 0 0 +/dev/md1 /boot btrfs relatime 0 0 diff --git a/post-debootstrap-installer.sh b/post-debootstrap-installer.sh index dd2a2e2..cc50a02 100755 --- a/post-debootstrap-installer.sh +++ b/post-debootstrap-installer.sh @@ -18,7 +18,7 @@ apt-get -y install locales ### boot -apt-get -y install mdadm cryptsetup systemd systemd-sysv dropbear +apt-get -y install mdadm cryptsetup systemd systemd-sysv dropbear btrfs-tools # generate minimal mdadm.conf mdadm --examine --scan | perl -pe 's/.*\/dev\/md\/?([0-9]+) .*UUID\=(.+?) .*/ARRAY \/dev\/md$1 UUID=$2/' > /etc/mdadm/mdadm.conf diff --git a/setup.sh b/setup.sh index 828c508..c5abedc 100755 --- a/setup.sh +++ b/setup.sh @@ -22,12 +22,12 @@ unset md0pwd chroot=/mnt/md0-unlocked # root device -mkfs.ext4 /dev/mapper/md0-unlocked +mkfs.btrfs /dev/mapper/md0-unlocked mkdir /mnt/md0-unlocked mount /dev/mapper/md0-unlocked /mnt/md0-unlocked # boot device -mkfs.ext4 /dev/md1 +mkfs.btrfs /dev/md1 mkdir "$chroot/boot" mount /dev/md1 "$chroot/boot"