FS#18192 - [initscripts] Diskless archlinux shutdown error
Attached to Project:
Arch Linux
Opened by zhengyi (goodmen) - Saturday, 06 February 2010, 11:16 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 23 November 2010, 02:36 GMT
Opened by zhengyi (goodmen) - Saturday, 06 February 2010, 11:16 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 23 November 2010, 02:36 GMT
|
Details
When install arch in diskless system, the shutdown scripts
seems be buggy.
It try to bring down the network and then to do some other housekeeping works. But in diskless systems, the rootfs is accessed by NFS. So if network is down, rootfs will not be accessed anymore, so the shutdonw script will not continue. If no one care that, I'll spend some time to fix it. |
This task depends upon
Closed by Eric Belanger (Snowman)
Tuesday, 23 November 2010, 02:36 GMT
Reason for closing: Implemented
Additional comments about closing: Fixed. Use NETWORK_PERSIST option. No response in +5 months.
Tuesday, 23 November 2010, 02:36 GMT
Reason for closing: Implemented
Additional comments about closing: Fixed. Use NETWORK_PERSIST option. No response in +5 months.
If it can be merged into the main stream, I'll be very glad.
NOTE: It is not an overall solution, some codes are needed to
judge whether we are in diskless configuration..................................,
--- /etc/rc.shutdown 2010-01-24 22:35:12.000000000 +0800
+++ rc.shutdown 2010-02-10 15:07:26.000000000 +0800
@@ -36,7 +36,9 @@ fi
let i=${#DAEMONS[@]}-1
while [ $i -ge 0 ]; do
if [ "${DAEMONS[$i]:0:1}" != '!' ]; then
- ck_daemon ${DAEMONS[$i]#@} || stop_daemon ${DAEMONS[$i]#@}
+ if [ ${DAEMONS[$i]#@} != "network" ]; then
+ ck_daemon ${DAEMONS[$i]#@} || stop_daemon ${DAEMONS[$i]#@}
+ fi
fi
let i=i-1
done