summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuilder/dnbd3-rootfs/hooks/mount/mount-root-device.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/builder/dnbd3-rootfs/hooks/mount/mount-root-device.sh b/builder/dnbd3-rootfs/hooks/mount/mount-root-device.sh
index 1f8bc05f..5c1186ac 100755
--- a/builder/dnbd3-rootfs/hooks/mount/mount-root-device.sh
+++ b/builder/dnbd3-rootfs/hooks/mount/mount-root-device.sh
@@ -1,3 +1,3 @@
mount /dev/mapper/root "$NEWROOT" -o subvol=root && \
# Write fstab for recognized system partition.
-sed --in-place --quiet '/^LABEL=system.*/!s/.*//' /etc/fstab
+sed --in-place --quiet '/^LABEL=system.*/!s/.*//' "$NEWROOT/etc/fstab"