Merge pull request #182 from saveriomiroddi/fix_debian_zed_symlink

Debian: Handle preexisting zed symlink
This commit is contained in:
Saverio Miroddi 2021-04-25 22:24:34 +02:00 committed by GitHub
commit 5ea6ae7715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1352,7 +1352,10 @@ function fix_filesystem_mount_ordering {
chroot_execute "mkdir /etc/zfs/zfs-list.cache"
chroot_execute "touch /etc/zfs/zfs-list.cache/$c_bpool_name /etc/zfs/zfs-list.cache/$v_rpool_name"
chroot_execute "ln -s /usr/lib/zfs-linux/zed.d/history_event-zfs-list-cacher.sh /etc/zfs/zed.d/"
# On Debian, this file may exist already.
#
chroot_execute "[[ ! -f /etc/zfs/zed.d/history_event-zfs-list-cacher.sh ]] && ln -s /usr/lib/zfs-linux/zed.d/history_event-zfs-list-cacher.sh /etc/zfs/zed.d/"
# Assumed to be present by the zedlet above on Debian, but missing.
# Filed issue: https://github.com/zfsonlinux/zfs/issues/9945.