Adjusting to live-initramfs.
[live-boot-grml.git] / scripts / live-bottom / 24preseed
index f4b2db0..a8f5a46 100755 (executable)
@@ -52,6 +52,17 @@ then
        done
 fi
 
+reply="$(echo "GET preseed/early_command" | chroot /root debconf-communicate -fnoninteractive live-initramfs)"
+
+if [ "${reply#0 }" != "${reply}" ]
+then
+       reply="${reply#0 }"
+       sh -c "${reply}"
+fi
+
+# Clear out debconf database backup files to save memory.
+rm -f /root/var/cache/debconf/*.dat-old
+
 log_end_msg
 
 exit 0