X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fpartition.DEFAULT;h=fdcfe6d1238e2f5f0c98d3f123fe4746b1a1ba1b;hp=ed12111b993c34d16f070f79ea9634ac9625de2b;hb=bacafbabe07c9edc86eaa75c24887d6fac0c310a;hpb=a2b8051e808621b9a33617d0c75d212bd2141ddc diff --git a/fai/config/hooks/partition.DEFAULT b/fai/config/hooks/partition.DEFAULT index ed12111..fdcfe6d 100755 --- a/fai/config/hooks/partition.DEFAULT +++ b/fai/config/hooks/partition.DEFAULT @@ -195,12 +195,10 @@ fi if [[ ! $DISTRO ]]; then - if ifclass VOL_STABLE_BOOTSTRAP; then - DISTRO=debianstable_bootstrap + if ifclass VOL_STRETCH_BOOTSTRAP; then + DISTRO=stretch_bootstrap elif ifclass VOL_STRETCH; then - DISTRO=debiantesting - elif ifclass VOL_STABLE; then - DISTRO=debianstable + DISTRO=debianstretch elif ifclass VOL_XENIAL; then DISTRO=ubuntuxenial elif ifclass VOL_BELENOS; then @@ -365,7 +363,7 @@ else fi -if [[ $DISTRO != debianstable_bootstrap ]]; then +if [[ $DISTRO != stretch_bootstrap ]]; then # bootstrap distro doesn't use separate encrypted root. mount -o subvolid=0 $first_root_crypt /mnt # systemd creates subvolumes we want to delete. @@ -403,7 +401,7 @@ btrfs subvolume set-default 0 /mnt # already default, just ensuring it. mkdir -p /mnt/grub2 cp $FAI/distro-install-common/libreboot_grub.cfg /mnt/grub2 -if [[ $DISTRO == debianstable_bootstrap ]]; then +if [[ $DISTRO == stretch_bootstrap ]]; then # this is just convenience for the libreboot_grub config # so we can glob the other ones easier. boot_vol=$DISTRO @@ -422,7 +420,7 @@ grub-editenv /mnt/grubenv set did_fai_check=true grub-editenv /mnt/grubenv set last_boot=/$boot_vol umount /mnt -if [[ $DISTRO == debianstable_bootstrap ]]; then +if [[ $DISTRO == stretch_bootstrap ]]; then cat > /tmp/fai/fstab <