]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash-live/apply-live-updates: Test proper file link.
authorFrederick Grose <fgrose@sugarlabs.org>
Mon, 3 Sep 2018 23:41:58 +0000 (19:41 -0400)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 6 Sep 2018 09:46:24 +0000 (11:46 +0200)
Update flag link to /dev/root as required by commit
789668deb3e6f8584ffab964d2204ddcb75f0a06.

modules.d/90dmsquash-live/apply-live-updates.sh

index bcca761b1b36882e7b636b67e871e1d11020e3ce..3df2d4ad865df98bb4d415428c3f0d53456ddabe 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-if [ -L /run/rootfsbase ] && [ -d /run/initramfs/live/updates -o -d /updates ]; then
+if [ -h /dev/root ] && [ -d /run/initramfs/live/updates -o -d /updates ]; then
     info "Applying updates to live image..."
     mount -o bind /run $NEWROOT/run
     # avoid overwriting symlinks (e.g. /lib -> /usr/lib) with directories