Skip to content

Commit

Permalink
improve: combine into one conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmmcgee committed Aug 5, 2024
1 parent 2d0cafc commit ad3b3f5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ucore/install-ucore-minimal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,12 @@ else
/tmp/rpms/kernel/kernel-modules-*.rpm
fi

## CONDITIONAL: install ZFS (and sanoid deps)
## CONDITIONAL: install ZFS (and sanoid with deps)
if [[ "-zfs" == "${ZFS_TAG}" ]]; then
rpm-ostree install pv /tmp/rpms/akmods-zfs/kmods/zfs/*.rpm
# for some reason depmod ran automatically with zfs 2.1 but not with 2.2
depmod -A ${KERNEL_VERSION}
fi

## CONDITIONAL: install sanoid if ZFS
if [[ "-zfs" == "${ZFS_TAG}" ]]; then

rpm-ostree install sanoid
fi

Expand Down

0 comments on commit ad3b3f5

Please sign in to comment.