The following changes were made:

* Add URL
  * Removed /etc/rcX.d directories (should be provided by sysvinit)
  * Added 'service' script
  * Properly set VERBOSE and FSCKFIX in init.d/checkfs
  * Used = in favor of == in checkfs, halt and sendsignals
  * Removed ZFS from mountfs
This commit is contained in:
2018-04-10 11:23:04 -05:00
parent 97906ebe04
commit 7de71fa1cd
6 changed files with 16 additions and 27 deletions

View File

@@ -9,8 +9,8 @@
# Default-Stop: 0 6
# Short-Description: Mounts/unmounts local filesystems
# Description: Remounts root filesystem read/write and mounts all
# remaining local filesystems defined in /etc/fstab or
# in ZFS. Remounts root filesystem read-only and unmounts
# remaining local filesystems defined in /etc/fstab.
# Remounts root filesystem read-only and unmounts
# remaining filesystems on stop.
# X-Required: true
### END INIT INFO
@@ -34,13 +34,6 @@ case "$1" in
rm /forcefsck && log_success_msg || log_failure_msg
fi
if [ -x /sbin/zpool ]; then
if zpool list rpool 2>&1 > /dev/null; then
log_init_msg "Mounting ZFS file systems"
zfs mount -a && log_success_msg || log_failure_msg
fi
fi
log_init_msg "Mounting remaining file systems"
mount -a -O no_netdev >/dev/null && log_success_msg || log_failure_msg
;;
@@ -49,13 +42,6 @@ case "$1" in
umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc,nodevpts \
>/dev/null && log_success_msg || log_failure_msg
if [ -x /sbin/zpool ]; then
if zpool list rpool 2>&1 > /dev/null; then
log_init_msg "Unmounting ZFS file systems"
zfs umount -a && log_success_msg || log_failure_msg
fi
fi
mount -o remount,ro /
;;
*)