X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FLAST%2F50-misc;h=e7b9e6d8b5baf71764d40a0bf7d3996d23a4dd49;hp=b80e846c5444d47adfe7bf0e84eb80371bc7d481;hb=HEAD;hpb=723056c40d38694c14d9bcb6b4a3108f7054a2a1 diff --git a/fai/config/scripts/LAST/50-misc b/fai/config/scripts/LAST/50-misc index b80e846..e7b9e6d 100755 --- a/fai/config/scripts/LAST/50-misc +++ b/fai/config/scripts/LAST/50-misc @@ -25,6 +25,7 @@ else echo ERROR: You want to add cryptsetup-initramfs or dracut to some package_config file. fi + # note, if we used dm for crypt, not lvm, so would givee false positive. todo, send patch to fix usedm=$(dmsetup ls 2>/dev/null | egrep -v '^live-rw|^live-base|^No devices found' | wc -l) if [ $usedm -ne 0 ]; then if [ ! -d $target/etc/lvm ]; then @@ -55,7 +56,7 @@ if [ $do_init_tasks -eq 1 ] ; then fi # Make sure everything is configured properly -if ifclass DEBIAN ; then +if ifclass DEBIAN || ifclass UBUNTU; then $ROOTCMD apt-get -f install -y fi @@ -82,7 +83,7 @@ setrel() { return fi - dists="jessie stretch buster bullseye bookworm trixie forky noble jammy focal bionic xenial trusty" + dists="jessie stretch buster bullseye bookworm trixie forky noble jammy focal bionic xenial trusty aramo nabia etiona" for d in $dists; do if grep -iq $d $target/etc/os-release; then release=$d