From: Luca Boccassi Date: Fri, 16 Mar 2018 12:08:16 +0000 (+0000) Subject: Add backward compatibility rbind mount /lib/live/mount -> /run/live X-Git-Tag: debian/1%20180328~8 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=c6a17c7b41bab36c8445e05fcd60e1e7a0a703a3 Add backward compatibility rbind mount /lib/live/mount -> /run/live The paths used in the current released versions of live-boot are a form of public API, and existing applications and scripts might rely on them. Do a recursive bind mount of the new path on the previous one so that they do not break on upgrade (see #886328). This backward-compatible mount point will be deprecated and removed before the Bullseye (Debian 11) release. Users are recommended to start migrating to the new /run/live path as soon as possible. Gbp-Dch: Full --- diff --git a/components/9990-main.sh b/components/9990-main.sh index b585704..ed48be3 100755 --- a/components/9990-main.sh +++ b/components/9990-main.sh @@ -174,6 +174,13 @@ Live () panic "A wrong rootfs was mounted." fi + # avoid breaking existing user scripts that rely on the old path + # this includes code that checks what is mounted on /lib/live/mount/* + # (eg: grep /lib/live /proc/mount) + # XXX: to be removed before the bullseye release + mkdir -p ${rootmnt}/lib/live/mount + mount --rbind /run/live ${rootmnt}/lib/live/mount + Fstab Netbase