hello

When /sbin/reboot command is used while a
user is doing some editing work, the
reboot process halt/pause within
/etc/rc.d/init.d/rc script (print_error_msg)

This caused by mountfs, trying to remount / in
readonly mode, as mount return an error (device busy)
print_error_msg is called.

(test done in live PXE mode).

I propose:

file lfs/init.d/mountfs (within stop case)

     # Make sure / is mounted read only (umount bug)
++   # first kill remaining processes in writing mode
++   fuser -s -m -w -k /
     mount --options remount,ro /


May I suggest:
file lfs/init.d/rc
to give acces to shell within print_error_msg() function

  MSG="${MSG}the files provided by the ${DISTRO_MINI} book,\n"
  MSG="${MSG}please be so kind to inform us at ${DISTRO_CONTACT}.\n"
  log_failure_msg "${MSG}"

+- log_info_msg "Press Enter to be in shell..."
   wait_for_user
++ /bin/bash


Debugging become easy.

Many thanks for job done in LFS.


--

A bientôt
===========================================================
Jean-Marc Pigeon                        E-Mail: [email protected]
SAFE Inc.                             Phone: (514) 493-4280
  Clement, 'a kiss solution' to get rid of SPAM (at last)
     Clement' Home base <"http://www.clement.safe.ca";>
===========================================================

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to