Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #792869
| From | "G.raud" <graud@gmx.com> |
|---|---|
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#848906: /init: missing critical mount failure detection |
| Date | 2016-12-20 18:40 +0100 |
| Message-ID | <sQwym-89-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
[Multipart message — attachments visible in raw view] - view raw
Package: initramfs-tools-core Version: 0.126 Severity: normal Tags: patch I experienced a failure to boot because root was set to an empty value (which seems a rather common problem caused by grub). However the /init passed the mounting step without stopping (and without complaining too much). The next failure detection is $init inexistence in /root and it is this one that is triggered to stop the /init and start a shell. (In passing please note that this detection sets $init to an empty value which is very inconvenient since it prevents the possibility to fix the problem in the panic shell before resuming the /init, which in my case was not possible anyways due to missing executables in the initramfs; I suggest not to set $init to an empty value, so that the original $init value is available for inspection in the panic shell.) The error actually triggered is very misleading because /init does not detect the failure of its main purpose: mounting /root. I join a patch to make basic checks after mounting both /root and /root/usr. It optionally calls mountpoint that could be available (for example in recent versions of busybox). It also adds a check that $ROOT is not empty (which could additionaly test for other obviously invalid values), placed right before the code that possibly decides to skip the part that makes the root device appear in /dev. This is because an empty $ROOT is a frequent problem and because the test to detect non /dev devices (like UBI) is too broad.
Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread
Bug#848906: /init: missing critical mount failure detection "G.raud" <graud@gmx.com> - 2016-12-20 18:40 +0100
csiph-web