Symlink '/sbin/shutdown' and '/sbin/reboot' to '/usr/bin' if not present there

This commit is contained in:
2025-07-21 14:15:09 -04:00
parent ae6fc22074
commit 26f59f4a91

View File

@@ -250,6 +250,14 @@ EOF
fi
fi
if [[ ! -f '/usr/bin/shutdown' ]]; then
ln -s /sbin/shutdown /usr/bin/shutdown
fi
if [[ ! -f '/usr/bin/reboot' ]]; then
ln -s /sbin/reboot /usr/bin/reboot
fi
zfs \
snapshot \
${HOSTNAME,,}/ROOT/${ID}@post-install