Installer crash when trying to unmount target
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Undecided
|
Unassigned | ||
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
Installing has crashed in the latest stages of the installation, apparently due to not being able to unmount /target/sys. The error I see in the log is:
Running command ['umount', '/target/
Running command ['umount', '/target/sys'] with allowed return codes [0] (capture=False)
umount: /target/sys: target is busy.
Mount shows that there is something else still mounted in target/sys:
sysfs on /target/sys type sysfs (rw,nosuid,
fusectl on /target/
This fails:
# umount /target/sys
But this is successful:
# umount /target/
# umount /target/sys
See attached file with the crash. This happens with the revision in edge for arm64:
edge arm64 21.06.01+
Related branches
- Ryan Harper (community): Approve
- Dan Bungert: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 118 lines (+35/-9)2 files modifiedcurtin/util.py (+20/-1)
tests/unittests/test_curthooks.py (+15/-8)
I guess this can be fixed by manually bind mounting /target/ sys/fs/ fuse/connection s as we currently do for /target/ sys/firmware/ efi/efivars. But I don't understand why either of these is needed, unless /sys/fs/ fuse/connection s is not mounted before the install starts, because this sequence works for me:
root@venerated- bobcat: ~/t# mkdir a a/b c bobcat: ~/t# mount -t fusectl fusectl a/b bobcat: ~/t# mount --bind a c bobcat: ~/t# umount c
root@venerated-
root@venerated-
root@venerated-
This sequence does not:
root@venerated- bobcat: ~/t# mkdir a a/b c bobcat: ~/t# mount --bind a c bobcat: ~/t# mount -t fusectl fusectl a/b bobcat: ~/t# umount c
root@venerated-
root@venerated-
root@venerated-
umount: /root/t/c: target is busy.
But afaics /sys/fs/ fuse/connection s is mounted at startup (it's "wanted" by sysinit.target). So I don't know what's going on basically. But I can probably fix it anyway if it's urgent.