Merge remote-tracking branch 'upstream/master'
authorMichael Büchler <mbuechler.3@gmail.com>
Mon, 20 Mar 2017 19:51:45 +0000 (20:51 +0100)
committerMichael Büchler <mbuechler.3@gmail.com>
Mon, 20 Mar 2017 19:51:45 +0000 (20:51 +0100)
git://anonscm.debian.org/debian-live/live-boot.git

 Conflicts:
backend/initramfs-tools/live.hook
components/9990-cmdline-old
debian/changelog
debian/control

backend/initramfs-tools/live.hook
components/9990-misc-helpers.sh
components/9990-netbase.sh
debian/changelog
debian/live-boot-grml-initramfs-tools.postinst
debian/live-boot-initramfs-tools.postrm

index d5765bb..9c2ec69 100755 (executable)
@@ -39,6 +39,16 @@ cp -a /bin/live-boot /lib/live/boot "${DESTDIR}/bin"
 mkdir -p "${DESTDIR}/lib/live"
 cp -a /lib/live/boot "${DESTDIR}/lib/live"
 
+mkdir -p "${DESTDIR}/etc/live"
+if [ -e /etc/live/boot.conf ]
+then
+       cp -a /etc/live/boot.conf "${DESTDIR}/etc/live"
+fi
+if [ -e /etc/live/boot ]
+then
+       cp -a /etc/live/boot "${DESTDIR}/etc/live"
+fi
+
 # klibc dependencies
 for FILE in /lib/libacl* /lib/libblkid* /lib/libuuid* /lib/libdevmapper* /lib/libattr*
 do
@@ -119,6 +129,7 @@ manual_add_modules overlay
 manual_add_modules nls_cp437
 manual_add_modules nls_iso8859-1
 manual_add_modules nls_utf8
+manual_add_modules nls_ascii
 manual_add_modules vfat
 
 # Filesystem: ntfs
index f3e4d72..6522682 100755 (executable)
@@ -1192,6 +1192,10 @@ removable_dev ()
 
        for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -vE "/(loop|ram|dm-|fd)")
        do
+               if [ ! -d "${sysblock}" ]; then
+                       continue
+               fi
+
                dev_ok=
                if [ "$(cat ${sysblock}/removable)" = "1" ]
                then
@@ -1237,6 +1241,10 @@ non_removable_dev ()
 
        for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -vE "/(loop|ram|dm-|fd)")
        do
+               if [ ! -d "${sysblock}" ]; then
+                       continue
+               fi
+
                if [ "$(cat ${sysblock}/removable)" = "0" ]
                then
                        case "${output_format}" in
index df8d080..c463cc0 100755 (executable)
@@ -68,7 +68,11 @@ EOF
                        fi
                done
        else
-               if [ -z "${NETBOOT}" ] || [ -n "${DHCP}" ]
+               if [ -n "${NODHCP}" ]
+               then
+                       # force DHCP off
+                       method="manual"
+               elif [ -z "${NETBOOT}" ] || [ -n "${DHCP}" ]
                then
                        # default, dhcp assigned
                        method="dhcp"
index 0b575da..653b7e0 100644 (file)
@@ -1,3 +1,20 @@
+live-boot (1:20170112) unstable; urgency=medium
+
+  [ Raphaël Hertzog ]
+  * Team upload.
+  * Fix nodhcp option to actually force DHCP off. Closes: #785345
+    Thanks to Frank Lillo for the report and Evgeni Golov for the patch.
+  * Improve 9990-misc-helpers.sh when /sys/block/ is empty.
+    Closes: #847802
+  * Multiple cleanups to appease lintian.
+
+  [ Kristian Klausen ]
+  * Add "nls_ascii" module in the initrd so that we can access FAT
+    partitions. Closes: #850532
+  * Copy /etc/live/boot.conf and /etc/live/boot to the initrd.
+
+ -- Raphaël Hertzog <hertzog@debian.org>  Thu, 12 Jan 2017 16:59:49 +0100
+
 live-boot (1:20160511+grml.1) unstable; urgency=medium
 
   The "capetown AKA debconf16" release
index d11c8d9..7239bfd 100644 (file)
@@ -4,7 +4,7 @@ set -e
 
 case "${1}" in
        configure)
-               if [ -x /usr/sbin/update-initramfs ] && [ -e /etc/initramfs-tools/initramfs.conf ]
+               if which update-initramfs >/dev/null 2>&1 && [ -e /etc/initramfs-tools/initramfs.conf ]
                then
                        update-initramfs -u
                fi
index 370b6c3..57c472e 100644 (file)
@@ -4,7 +4,7 @@ set -e
 
 case "${1}" in
        remove)
-               if [ -x /usr/sbin/update-initramfs ] && [ -e /etc/initramfs-tools/initramfs.conf ]
+               if which update-initramfs >/dev/null 2>&1 && [ -e /etc/initramfs-tools/initramfs.conf ]
                then
                        update-initramfs -u
                fi