Skip to content

Commit

Permalink
fix(dmsquash-live): handle relative pathspec
Browse files Browse the repository at this point in the history
This change is required to make the earlier canonical
example work that is mentioned in the documentation:

At the same time, improve the documentation with a more
specific example.
  • Loading branch information
LaszloGombos committed Mar 6, 2023
1 parent 2334031 commit ed5b4b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion man/dracut.cmdline.7.asc
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ used.
[listing]
.Examples
--
rd.live.overlay=/dev/sdb1:persistent-overlay.img
rd.live.overlay=/dev/sdb1:/persistent-overlay.img
rd.live.overlay=UUID=99440c1f-8daa-41bf-b965-b7240a8996f4
--
Expand Down
2 changes: 1 addition & 1 deletion modules.d/90dmsquash-live/dmsquash-live-root.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ do_live_overlay() {
pathspec="/${live_dir}/overlay-$l-$u"
elif strstr "$overlay" ":"; then
# pathspec specified, extract
pathspec=${overlay##*:}
pathspec=/${overlay##*:}
fi

if [ -z "$pathspec" -o "$pathspec" = "auto" ]; then
Expand Down

0 comments on commit ed5b4b9

Please sign in to comment.