static usb ethnet addresses
[automated-distro-installer] / fai / config / scripts / LAST / 50-misc
index b80e846c5444d47adfe7bf0e84eb80371bc7d481..e7b9e6d8b5baf71764d40a0bf7d3996d23a4dd49 100755 (executable)
@@ -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