Don't use awk in early mounthost
Bug #198007 reported by
Agostino Russo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lupin |
Fix Released
|
Low
|
Agostino Russo |
Bug Description
Awk might not be available by the time mounthost is executed. Replace with somethink like the following
loopfile_
host_mountpoint
while [ -z "host_device" ] && [ "host_mountpoint" ] && [ "host_mountpoint" -ne "/" ]; do
host_mountpoint = ${host_
host_
done
Related branches
Changed in lupin: | |
assignee: | nobody → ago |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in lupin: | |
status: | Confirmed → Fix Committed |
Changed in lupin: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
take-2:
loopfile_ fstab_line= $(sed -n '\:^/[^ ]*[ ]*[ ]/[ ][ ]*[^ ]*[ ].*loop.*[ ]:p' /etc/fstab) =${loopfile_ fstab_line% % *} mountpoint= ${host_ mountpoint% /*} device= $(sed -n "\:^/[^ ]* $host_mountpoint :p" /proc/mounts)
host_mountpoint
while [ -z "$host_device" ] && [ -n "$host_mountpoint" ] && [ ! "$host_mountpoint" = "/" ]; do
host_
host_
done