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
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.
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
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 <<EOF
$first_boot_dev / btrfs noatime,subvol=$boot_vol 0 0
EOF