Package: release.debian.org
Version: 0.5.6
Severity: normal

Please unblock package bilibop. I've uploaded 0.5.6 to unstable some
minutes ago.

Two bugs of severity important have been reported against bilibop-lockfs
few days ago and would be fixed by this upload:
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928658
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928780

Both bugs are about boot failures when installing a fresh version of
Buster and this package. A source debdiff is attached.

Cheers,
Ulrike

unblock bilibop/0.5.6
diff -Nru bilibop-0.5.6/debian/changelog bilibop-0.5.5/debian/changelog
--- bilibop-0.5.6/debian/changelog	2019-05-11 03:40:04.000000000 +0200
+++ bilibop-0.5.5/debian/changelog	2019-01-31 00:52:22.000000000 +0100
@@ -1,15 +1,3 @@
-bilibop (0.5.6) unstable; urgency=high
-
-  * bilibop-lockfs:
-    - fix boot failure by supporting the new path /usr/bin/mount as well as
-      the legacy /bin/mount (kept for backward compatibility).
-      Closes: #928658.
-    - fix boot failure about mounts flagged 'ro' in fstab by applying the
-      'ro' option to the union instead of its writable branch.
-      Closes: #928780.
-
- -- Yann Amar <quid...@poivron.org>  Sat, 11 May 2019 01:40:04 +0000
-
 bilibop (0.5.5) unstable; urgency=low
 
   * debian/control:
diff -Nru bilibop-0.5.6/lib/bilibop/lockfs_mount_helper bilibop-0.5.5/lib/bilibop/lockfs_mount_helper
--- bilibop-0.5.6/lib/bilibop/lockfs_mount_helper	2019-05-11 03:40:04.000000000 +0200
+++ bilibop-0.5.5/lib/bilibop/lockfs_mount_helper	2017-09-11 20:52:36.000000000 +0200
@@ -54,17 +54,11 @@
 }
 # ===========================================================================}}}
 
-# Works only if the parent process is the mount command (/bin/mount for backward
-# compatibility, or /usr/bin/mount). This will ensure arguments are passed in a
-# specific order, and shorten the code to parse them.
-case "$(readlink -f /proc/${PPID}/exe)" in
-    "/bin/mount"|"/usr/bin/mount")
-        ;;
-    *)
-        usage >&2
-        exit 3
-        ;;
-esac
+# Works only if the parent process is /bin/mount:
+if [ "$(readlink -f /proc/${PPID}/exe)" != "/bin/mount" ]; then
+    usage >&2
+    exit 3
+fi
 
 . /lib/bilibop/common.sh
 get_bilibop_variables
@@ -188,32 +182,31 @@
 mntpnt="${2}"
 options="${4}"
 
-# Parse mount options and allocate them to the proper branches or their
-# union:
+# Parse mount options. Two cases:
 # 1. the block device will be mounted with the same options than in the
 #    original fstab entry, plus 'ro'.
 # 2. the tmpfs will be mounted with only some options of the previous:
-#    nodev, noexec, nosuid, if they exist.
-# 3. when set in the persistent fstab, the ro flag could be deferred to
-#    the tmpfs mount (and the union will inherit of it), but this would
-#    forbid creation of subdirectories for submountpoints.
+#    ro, nodev, noexec, nosuid, if they exist.
 
 for opt in $(IFS=','; echo ${options}); do
+    # 1. Options for the readonly branch:
     case "${opt}" in
         fstype=*)
             eval "${opt}"
             ;;
         rw)
             ;;
-        ro)
-            union_opts="${union_opts:+${union_opts},}${opt}"
+        *)
+            robr_opts="${robr_opts:+${robr_opts},}${opt}"
             ;;
-        nodev|noexec|nosuid)
+    esac
+
+    # 2. Options for the writable branch:
+    case "${opt}" in
+        ro|nodev|noexec|nosuid)
             rwbr_opts="${rwbr_opts:+${rwbr_opts},}${opt}"
-            robr_opts="${robr_opts:+${robr_opts},}${opt}"
             ;;
         *)
-            robr_opts="${robr_opts:+${robr_opts},}${opt}"
             ;;
     esac
 done
@@ -381,9 +374,9 @@
 
 # Now set the union filesystem mount options
 if [ "${METHOD}" = "aufs" ]; then
-    UNIONFS_OPTS="${union_opts:+${union_opts},}br:${rwbr}=rw:${robr}=${RO}"
+    UNIONFS_OPTS="br:${rwbr}=rw:${robr}=${RO}"
 elif [ "${METHOD}" = "overlay" ]; then
-    UNIONFS_OPTS="${union_opts:+${union_opts},}lowerdir=${robr},upperdir=${rwbr},workdir=${work}"
+    UNIONFS_OPTS="lowerdir=${robr},upperdir=${rwbr},workdir=${work}"
 fi
 
 # Try to mount the union fs now. In case of failure, undo what has been done
diff -Nru bilibop-0.5.6/lib/bilibop/lockfs.sh bilibop-0.5.5/lib/bilibop/lockfs.sh
--- bilibop-0.5.6/lib/bilibop/lockfs.sh	2019-05-11 03:40:04.000000000 +0200
+++ bilibop-0.5.5/lib/bilibop/lockfs.sh	2017-09-11 20:52:36.000000000 +0200
@@ -319,7 +319,6 @@
 #!/bin/sh
 # THIS IS A FALLBACK; IT DON'T LOCK FS BUT JUST RECALLS /bin/mount WITH VALID FSTYPE AND OPTIONS.
 PATH="/bin"
-[ "\$(readlink -f /proc/\${PPID}/exe)" = "/usr/bin/mount" ] ||
 [ "\$(readlink -f /proc/\${PPID}/exe)" = "/bin/mount" ] || exit 3
 for opt in \$(IFS=',' ; echo \${4}) ; do
     case "\${opt}" in

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to