Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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.
Comment by Gerardo Exequiel Pozzi (djgera) - Saturday, 06 February 2010, 22:52 GMT
  • Field changed: Task Type (Bug Report → Feature Request)
  • Field changed: Summary (Diskless archlinux shutdown error. → [initscripts] Diskless archlinux shutdown error)
  • Field changed: Status (Unconfirmed → Assigned)
  • Field changed: Category (System → Packages: Core)
  • Task assigned to Aaron Griffin (phrakture), Thomas Bächler (brain0)
I guess that patches are welcomed ;)
Comment by zhengyi (goodmen) - Wednesday, 10 February 2010, 08:37 GMT
ok, here is the patch, I do tested it.
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
Comment by Thomas Bächler (brain0) - Wednesday, 10 February 2010, 09:24 GMT
We should really implement this inside the network scripts, they should look up a configuration variable that tells them that network must never be shut down.
Comment by Thomas Bächler (brain0) - Wednesday, 09 June 2010, 18:08 GMT

Loading...