[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#924252: unblock: debootstick/2.2



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package debootstick

A recent update in LVM causes debootstick 2.1 to be mostly unusable (Bug#923852).
A small fix has been packaged as version 2.2, just uploaded to unstable.

The debdiff is attached.

unblock debootstick/2.2

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-3-amd64 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru debootstick-2.1/debian/changelog debootstick-2.2/debian/changelog
--- debootstick-2.1/debian/changelog	2018-10-05 11:58:29.000000000 +0000
+++ debootstick-2.2/debian/changelog	2019-03-08 12:48:40.000000000 +0000
@@ -1,3 +1,9 @@
+debootstick (2.2) unstable; urgency=medium
+
+  * Fix new LVM versions hanging in chroot (closes: Bug#923852).
+
+ -- Etienne Dublé <etienne.duble@gmail.com>  Fri, 8 Mar 2019 13:48:03 +0000
+
 debootstick (2.1) unstable; urgency=medium
 
   * Extensive tests.
diff -Nru debootstick-2.1/debian/control debootstick-2.2/debian/control
--- debootstick-2.1/debian/control	2018-08-01 09:16:01.000000000 +0000
+++ debootstick-2.2/debian/control	2019-03-08 13:11:14.000000000 +0000
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Etienne Dublé <etienne.duble@gmail.com>
 Build-Depends: debhelper (>= 11)
-Standards-Version: 4.1.3
+Standards-Version: 4.3.0
 Homepage: http://drakkar-lig.github.io/debootstick
 Vcs-Git: https://github.com/drakkar-lig/debootstick
 Vcs-Browser: https://github.com/drakkar-lig/debootstick
@@ -25,4 +25,3 @@
  The embedded system is ready to be started live (no
  installation procedure needed), and is fully upgradeable
  (kernel and bootloader included).
-
diff -Nru debootstick-2.1/debootstick debootstick-2.2/debootstick
--- debootstick-2.1/debootstick	2018-08-01 10:10:17.000000000 +0000
+++ debootstick-2.2/debootstick	2019-03-08 12:40:46.000000000 +0000
@@ -237,14 +237,16 @@
 # management in the chroot. Ensure we have a valid DNS setup there.
 [ -f etc/resolv.conf ] || touch etc/resolv.conf
 with mount -o bind /etc/resolv.conf $PWD/etc/resolv.conf; do
-    # let's start the customization
-    chroot . ./chrooted-customization-draft.sh $CHROOTED_DEBUG    \
+    with mount -o bind /run $PWD/run; do
+        # let's start the customization
+        chroot . ./chrooted-customization-draft.sh $CHROOTED_DEBUG    \
                 "$draft_device" "$root_password_request"        \
                 stick_os_id=$STICK_OS_ID   \
                 config_grub_on_serial_line=$config_grub_on_serial_line  \
                 kernel_package="\"$kernel_package\""    \
                 kernel_bootargs="\"$kernel_bootargs\"" \
                 config_hostname="\"$config_hostname\""
+    done
 done
 rm ./chrooted-customization-draft.sh
 
@@ -307,8 +309,10 @@
 # creating new files may cause problems.
 # so we will use the directory /tmp that we mount in memory.
 with mount -t tmpfs none $final_rootfs_mountpoint/tmp; do
-    cp -a $DBSTCK_DIR/scripts/create-image/chrooted-customization-final.sh tmp
-    chroot . tmp/chrooted-customization-final.sh "$final_device"
+    with mount -o bind /run $PWD/run; do
+        cp -a $DBSTCK_DIR/scripts/create-image/chrooted-customization-final.sh tmp
+        chroot . tmp/chrooted-customization-final.sh "$final_device"
+    done
 done
 
 # execute target-specific cleanup steps, if any

Reply to: