X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fpartition.DEFAULT;h=3d024af5dbcc789939423f3afa2fc14089677d86;hp=7c88c7492a8b808ceeb52eaf0c3eb25b87260c47;hb=ab68265ccb7857baff11c0cc216e0c5e9bf4d629;hpb=fe81034ee9664d8e131bac218b40d99a58a31649 diff --git a/fai/config/hooks/partition.DEFAULT b/fai/config/hooks/partition.DEFAULT index 7c88c74..3d024af 100755 --- a/fai/config/hooks/partition.DEFAULT +++ b/fai/config/hooks/partition.DEFAULT @@ -305,12 +305,14 @@ esac if [[ ! $DISTRO ]]; then - if ifclass VOL_STRETCH_BOOTSTRAP; then - DISTRO=debianstretch_bootstrap + if ifclass VOL_BUSTER_BOOTSTRAP; then + DISTRO=debianbuster_bootstrap elif ifclass VOL_STRETCH; then DISTRO=debianstretch elif ifclass VOL_BUSTER; then DISTRO=debianbuster + elif ifclass VOL_BULLSEYE; then + DISTRO=debianbullseye elif ifclass VOL_TESTING; then DISTRO=debiantesting elif ifclass VOL_XENIAL; then @@ -319,8 +321,6 @@ if [[ ! $DISTRO ]]; then DISTRO=ubuntubionic elif ifclass VOL_FOCAL; then DISTRO=ubuntufocal - elif ifclass VOL_BELENOS; then - DISTRO=trisquelbelenos elif ifclass VOL_FLIDAS; then DISTRO=trisquelflidas elif ifclass VOL_ETIONA; then @@ -516,7 +516,7 @@ else fi -if $wipe && [[ $DISTRO != debianstretch_bootstrap ]]; then +if $wipe && [[ $DISTRO != debianbuster_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. @@ -553,7 +553,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 == debianstretch_bootstrap ]]; then +if [[ $DISTRO == debianbuster_bootstrap ]]; then # this is just convenience for the libreboot_grub config # so we can glob the other ones easier. boot_vol=$DISTRO @@ -576,7 +576,7 @@ grub-editenv /mnt/grubenv set did_fai_check=true grub-editenv /mnt/grubenv set last_boot=/$boot_vol umount /mnt -if [[ $DISTRO == debianstretch_bootstrap ]]; then +if [[ $DISTRO == debianbuster_bootstrap ]]; then cat > /tmp/fai/fstab <