On Thu, May 09, 2013 at 10:26:33PM +0100, Ken Moffat wrote:
> On Fri, May 10, 2013 at 12:18:28AM +0300, Markku Pesonen wrote:
> > 
> > I think this is caused by some change in util-linux-2.22 umount code (if
> > I remember correctly). In /etc/rc.d/init.d/mountfs there is the
> > following line:
> > umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc >/dev/null
> > Despite using the -r option, umount does not remount the root filesystem
> > in read-only mode during shutdown like it used to. Adding this command
> > after that line fixed things for me:
> > mount -n -o remount,ro /
> > 
> > My own bootscripts are somewhat different than those currently used in
> > LFS so I'm not sure if this is the right way of fixing this issue in
> > LFS, but it should be safe to try.
> > 
>  Thanks, sounds useful.
> 
> ĸen

 I've now confirmed that on this box, where I hadn't _noticed_ the
issue, it did appear.  And adding that line fixes it.

 As to whether that is the _correct_  fix, I have no idea : adding
the command seems to be correct (based on Markku's analysis), but
evaluate_retval now seems to read the result of the added mount
command, instead of taking account of the earlier umount command.
OTOH, the umount was no longer doing what it used to, but
evaluate_retval still came up as 'OK'.  Maybe it's a bug.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to