--- Em qui, 22/3/12, Bruce Dubbs escreveu: > De: Bruce Dubbs > Assunto: Re: [lfs-support] Mountfs bootscript stops shutdown > Para: "LFS Support List" > Data: Quinta-feira, 22 de Março de 2012, 22:27 > Fernando de Oliveira wrote: > > --- Em qui, 22/3/12, Bruce Dubbs escreveu: > > > >> De: Bruce Dubbs Assunto: Re: [lfs-support] Mountfs > bootscript stops > >> shutdown Para: "LFS Support List" Data: > Quinta-feira, 22 de Março > >> de 2012, 17:44 Fernando de Oliveira wrote: > >>> --- Em qui, 22/3/12, Bruce Dubbs escreveu: > >>> > >>>> De: Bruce Dubbs Assunto: Re: [lfs-support] > Mountfs bootscript > >>>> stops > >> shutdown > >>>> Para: "LFS Support List" Data: > Quinta-feira, 22 de Março de > >>>> 2012, 13:20 Fernando de Oliveira wrote: > > > > > >> If you are not using lvm, then one way to change > the script > >> behavior is to merely remove /sbin/vgchange which > is a symbolic > >> link to lvm. > > > > Bruce, thanks again. > > > > I think I will choose last option, at least for the > moment. I had > > noticed it was a symlink, but was not sure how > dangerous doing so > > could be. > > > > FYI, I am attaching a screen-capture of the shutdown > hang. I have > > trimmed the rest of the post for size sake. > > Interesting. It looks like /proc is unmounted. > That didn't happen in > my tests.
I see. > If you can run an experiment for me, there are a couple of > tests you can > make to check this out. The stop portion of the script > now reads: > > stop) > # Don't unmount tmpfs like /run > log_info_msg "Unmounting all other > currently mounted file systems..." > umount -a -d -r -t > notmpfs,nosysfs,nodevtmpfs >/dev/null > evaluate_retval > > # Make all LVM volume groups unavailable, > if appropriate > if [ -x /sbin/vgchange ]; then > /sbin/vgchange -an; fi > ;; > > First, try moving the vgchange line to right before the > umount command. Test passed. Message " No volume groups found" appears on screen, of course. > > The second test would be to use the current script but > change the line: > > -t notmpfs,nosysfs,nodevtmpfs > > to > > -t notmpfs,nosysfs,nodevtmpfs,noproc > Undone first change for second test. Test passed, too. Message appears again. > I suspect that cheange one will work. When testing, be > sure to add back > the vgchange symlink. Done. > The second change would be preferable because I am thinking > of moving > the vgchange command to the swap script in case one or more > swap areas > are LVM based. So, I left mountfs script in this last form. > OTOH, in /etc/rc.d/rc{0,6).d/ we now have S70mountfs and > S80swap. I'm > thinking that turning off swap before unmounting might be > appropriate. > That is, change the symlink names there to S65swap. Done. Just FYI, shutdown fine, as after second test, and last form of the script. Thank you very much, Bruce, that solved the issue!!!! And I learned many more things. []s, Fernando -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page