Add /host/boot to fstab
Bug #173659 reported by
Agostino Russo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Wubi |
Fix Released
|
Medium
|
Agostino Russo | ||
partman-auto-loop (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: partman-auto-loop
The following line should be added to fstab whenever we are dealing with a loop installation that has the boot folder as a directory inside of the host filesystem (in the case below /host/ubuntu/
/host/ubuntu/
Related branches
lp:~ago/partman-auto-loop/lupin-support
On hold
for merging
into
lp:~ubuntu-installer/partman-auto-loop/ubuntu
- No reviews requested
Changed in wubi: | |
importance: | Undecided → Medium |
status: | New → Fix Committed |
Changed in wubi: | |
assignee: | nobody → ago |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Untested, but something along those lines in /lib/partman/ fstab.d might do the trick. The script checks whether / is on a loopfile and whether there is a "boot" directory in the same path of the loopfile, in which case it bindsmount boot.
#!/bin/sh
. /lib/partman/ definitions. sh
for dev in $DEVICES/*; do filesystem" ] || continue
method= $(cat $id/method)
mountpoint= $(cat $id/mountpoint)
options= $(get_mountopti ons $dev $id)
path= ${path% /*}
[ -d $dev ] || continue
cd $dev
open_dialog PARTITIONS
while { read_line num id size type fs path name; [ "$id" ]; }; do
[ $fs != free ] || continue
[ -f "$id/method" ] || continue
[ -f "$id/acting_
[ -f "$id/mountpoint" ] || continue
if [ "$mountpoint" = / ]; then
[ "$options" = ${options#*loop} ] && exit 0
[ -d "$path/boot" ] || exit 0
echo "$path/boot" /boot none bind 0 0
fi
done
close_dialog
done