Remove sourcing /scripts/functions in components
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Thu, 15 Mar 2018 18:23:18 +0000 (19:23 +0100)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Thu, 15 Mar 2018 18:53:23 +0000 (19:53 +0100)
The components 9990-fstab.sh and 9990-netbase.sh source
/scripts/functions. This overrides the mount_* functions (to no-ops)
which will break supporting live-{top,premount,bottom} hooks. Therefore
remove those problematic includes which do not seem to be necessary
nowadays. See Debian bug #884355 for the discussion.

Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
components/9990-fstab.sh
components/9990-netbase.sh

index a8d9123..ba579de 100755 (executable)
@@ -4,10 +4,6 @@
 
 Fstab ()
 {
-       # FIXME: stop hardcoding overloading of initramfs-tools functions
-       . /scripts/functions
-       . /lib/live/boot/9990-initramfs-tools.sh
-
        if [ -n "${NOFSTAB}" ]
        then
                return
index 04a4ae4..bae858a 100755 (executable)
@@ -9,10 +9,6 @@ Netbase ()
                return
        fi
 
-       # FIXME: stop hardcoding overloading of initramfs-tools functions
-       . /scripts/functions
-       . /lib/live/boot/9990-initramfs-tools.sh
-
        log_begin_msg "Preconfiguring networking"
 
        IFFILE="/root/etc/network/interfaces"