From fafe005d86703e202893ff45f28957f1509d4faf Mon Sep 17 00:00:00 2001 From: David Cassany Date: Tue, 5 Mar 2024 13:42:29 +0100 Subject: [PATCH] Image variable includes full image path already Signed-off-by: David Cassany --- .../modules.d/20elemental-sysroot/sysroot-generator.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/features/embedded/elemental-sysroot/usr/lib/dracut/modules.d/20elemental-sysroot/sysroot-generator.sh b/pkg/features/embedded/elemental-sysroot/usr/lib/dracut/modules.d/20elemental-sysroot/sysroot-generator.sh index 543a5b63fc5..4bec8bc35ba 100755 --- a/pkg/features/embedded/elemental-sysroot/usr/lib/dracut/modules.d/20elemental-sysroot/sysroot-generator.sh +++ b/pkg/features/embedded/elemental-sysroot/usr/lib/dracut/modules.d/20elemental-sysroot/sysroot-generator.sh @@ -49,7 +49,7 @@ if [ "${snapshotter}" == "btrfs" ]; then *active*) opts="ro,noatime,seclabel,compress=lzo,space_cache=v2" ;; *passive*) - opts="ro,noatime,seclabel,compress=lzo,space_cache=v2,subvol=@/.snapshots/${elemental_img}/snapshot" ;; + opts="ro,noatime,seclabel,compress=lzo,space_cache=v2,subvol=${elemental_img}" ;; *) exit 1 ;; esac @@ -101,9 +101,9 @@ else *active*) image=".snapshots/active" ;; *passive*) - image=".snapshots/${elemental_img}/snapshot" ;; + image="${elemental_img}" ;; *recovery*) - image="recovery.img" ;; + image="${elemental_img}" ;; *) exit 1 ;; esac