Moving reading of initramfs-tools functions to initramfs-tools script.
authorDaniel Baumann <daniel@debian.org>
Mon, 13 Aug 2012 23:11:27 +0000 (01:11 +0200)
committerDaniel Baumann <daniel@debian.org>
Mon, 13 Aug 2012 23:11:27 +0000 (01:11 +0200)
scripts/boot/0020-initramfs-tools
scripts/boot/9990-aaa-fixme.sh

index 175488e..c251443 100755 (executable)
@@ -2,6 +2,11 @@
 
 #set -e
 
+if [ -e /scripts/functions ]
+then
+       . /scripts/functions
+fi
+
 mountroot ()
 {
        # initramfs-tools entry point for live-boot is mountroot(); function
index 77a291a..6530cc1 100755 (executable)
@@ -1,11 +1,5 @@
 #!/bin/sh
 
-if [ -e /scripts/functions ]
-then
-       # initramfs-tools specific (FIXME)
-       . /scripts/functions
-fi
-
 export PATH="/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
 
 echo "/root/lib" >> /etc/ld.so.conf