Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 878653 Details for
Bug 919696
sys-fs/zfs-2.2.2: init script "zfs-import" doesn't implement stop() and can't properly deactivate zpool during shutdown
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch adding stop() to /etc/init.d/zfs-import
zfs-2.2.2-zfs-import-stop-fix.patch (text/plain), 1.19 KB, created by
ev
on 2023-12-10 22:38:53 UTC
(
hide
)
Description:
patch adding stop() to /etc/init.d/zfs-import
Filename:
MIME Type:
Creator:
ev
Created:
2023-12-10 22:38:53 UTC
Size:
1.19 KB
patch
obsolete
>diff --git a/etc/default/zfs.in b/etc/default/zfs.in >index ae813e9de..e4433277c 100644 >--- a/etc/default/zfs.in >+++ b/etc/default/zfs.in >@@ -30,6 +30,9 @@ ZFS_SHARE='yes' > # Run `zfs unshare -a` during system stop? > ZFS_UNSHARE='yes' > >+# Run `zpool export -a` during system stop? >+ZPOOL_EXPORT='yes' >+ > # By default, a verbatim import of all pools is performed at boot based on the > # contents of the default zpool cache file. The contents of the cache are > # managed automatically by the 'zpool import' and 'zpool export' commands. >diff --git a/etc/init.d/zfs-import.in b/etc/init.d/zfs-import.in >index a9a0604f8..544621828 100755 >--- a/etc/init.d/zfs-import.in >+++ b/etc/init.d/zfs-import.in >@@ -305,6 +305,14 @@ do_start() > fi > } > >+do_stop() >+{ >+ if check_boolean "$ZPOOL_EXPORT" >+ then >+ zpool export -a >+ fi >+} >+ > # ---------------------------------------------------- > > if [ ! -e /sbin/openrc-run ] >@@ -314,7 +322,7 @@ then > do_start > ;; > stop) >- # no-op >+ do_stop > ;; > status) > do_status >@@ -334,5 +342,6 @@ else > # Create wrapper functions since Gentoo don't use the case part. > depend() { do_depend; } > start() { do_start; } >+ stop() { do_stop; } > status() { do_status; } > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 919696
: 878653