[Bug 197470] Re: [Hardy]setting up linux-ubuntu-modules fails with WARNING: /boot is ro mounted
Gabor CZIGOLA
czigola at gmail.com
Tue Mar 4 02:47:45 UTC 2008
The warning message comes from the postinst script (line 836 for linux-image-2.6.24-11-generic).
The script would execute: update-initramfs -u -k 2.6.24-11-generic
And
$ sudo update-initramfs -u -k `uname -r`
WARNING: /boot is ro mounted.
update-initramfs: Not updating /boot/initrd.img-2.6.24-11-generic
$ sudo strace -f -o /tmp/strace.update-initramfs update-initramfs -u -k `uname -r`
reveals the source of the problem:
98 13113 open("/proc/mounts", O_RDONLY) = 3
99 13113 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8551b8) = -1 ENOTTY (Inappropriate ioctl for device)
100 13113 read(3, "rootfs / rootfs rw 0 0\nnone /sys"..., 4096) = 1016
101 13113 read(3, "", 3080) = 0
102 13113 fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
103 13113 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f6b000
104 13113 close(3) = 0
105 13113 write(1, "ro\n", 3 <unfinished ...>
106 13112 <... read resumed> "ro\n", 128) = 3
107 13113 <... write resumed> ) = 3
108 13112 read(3, <unfinished ...>
109 13113 close(1 <unfinished ...>
110 13112 <... read resumed> "", 128) = 0
111 13113 <... close resumed> ) = 0
112 13112 close(3 <unfinished ...>
113 13113 munmap(0xb7f6b000, 4096 <unfinished ...>
114 13112 <... close resumed> ) = 0
115 13113 <... munmap resumed> ) = 0
116 13112 wait4(-1, <unfinished ...>
117 13113 close(2) = 0
118 13113 exit_group(0) = ?
119 13112 <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 13113
120 13112 --- SIGCHLD (Child exited) @ 0 (0) ---
121 13112 write(1, "WARNING: /boot is ro mounted.\n", 30) = 30
122 13112 write(1, "update-initramfs: Not updating /"..., 66) = 66
Whereby the corresponding line of /proc/mounts is:
/dev/sda1 /boot ext3 rw,noatime,errors=remount-ro,data=ordered 0 0
There is a matching ro in the line.
If I remounted /boot without the errors=remount-ro option, the bug was gone!
update-initramfs does not match correctly for 'ro' in /proc/mounts
** Changed in: initramfs-tools (Ubuntu)
Assignee: (unassigned) => Gabor CZIGOLA (gab++)
Status: Incomplete => In Progress
--
[Hardy]setting up linux-ubuntu-modules fails with WARNING: /boot is ro mounted
https://bugs.launchpad.net/bugs/197470
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to initramfs-tools in ubuntu.
More information about the kernel-bugs
mailing list