From 26f59f4a91ca3e6e86749bc137662323cd02b776 Mon Sep 17 00:00:00 2001 From: "Jean (east-high-Nerd)" Date: Mon, 21 Jul 2025 14:15:09 -0400 Subject: [PATCH] Symlink '/sbin/shutdown' and '/sbin/reboot' to '/usr/bin' if not present there --- post-inst.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/post-inst.sh b/post-inst.sh index e4ec2f5..7bc8d9f 100755 --- a/post-inst.sh +++ b/post-inst.sh @@ -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