diff options
-rwxr-xr-x | share/hydractl/provision | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision index 2d7676f..fc0e43e 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -110,11 +110,11 @@ if [ "$encrypt" == "y" ]; then echo "Creating encrypted root device..." hydra_safe_run cryptsetup -h sha256 -c aes-cbc-essiv:sha256 -s 256 luksFormat /dev/$vg/root hydra_safe_run cryptsetup luksOpen /dev/$vg/root debootstrap - hydra_safe_run mkfs.ext3 /dev/mapper/debootstrap + hydra_safe_run mkfs.ext4 /dev/mapper/debootstrap install_device="/dev/mapper/debootstrap" else echo "Creating root device..." - mkfs.ext3 /dev/vg/root + mkfs.ext4 /dev/vg/root install_device="/dev/vg/root" fi @@ -172,7 +172,7 @@ echo "Configuring fstab..." echo "" > /tmp/debootstrap/etc/fstab if [ "$encrypt" == "y" ]; then cat > /tmp/debootstrap/etc/fstab <<-EOF -/dev/mapper/root / ext3 defaults,errors=remount-ro 0 1 +/dev/mapper/root / ext4 defaults,errors=remount-ro 0 1 EOF fi @@ -185,9 +185,9 @@ fi # Grub. if [ "$grub" == "y" ]; then echo "Boot device setup..." - hydra_safe_run mkfs.ext3 $boot_device + hydra_safe_run mkfs.ext4 $boot_device hydra_safe_run mount $boot_device /tmp/debootstrap/boot - echo "$boot_device /boot ext3 defaults,errors=remount-ro 0 2" >> /tmp/debootstrap/etc/fstab + echo "$boot_device /boot ext4 defaults,errors=remount-ro 0 2" >> /tmp/debootstrap/etc/fstab echo "Setting up GRUB..." hydra_safe_run chroot /tmp/debootstrap/ apt-get install grub-pc -y |