Moved automatic execution of 'finalize.sh' to cronjob at reboot

This commit is contained in:
2025-07-21 15:11:12 -04:00
parent 26f59f4a91
commit 802fa4f3c8

View File

@@ -233,11 +233,11 @@ EOF
if [[ "${ID}" == 'fedora' ]]; then
printf \
'@reboot /usr/bin/home-fix.sh\n' | \
"@reboot\t/usr/bin/home-fix.sh\n@reboot\tsudo -u ${USERNAME} '${BASEDIR}/finalize.sh'\n" | \
tee /var/spool/cron/root &> /dev/null
elif [[ "${ID}" == 'debian' ]]; then
printf \
'@reboot /usr/bin/home-fix.sh\n' | \
"@reboot\t/usr/bin/home-fix.sh\n@reboot\tsudo -u ${USERNAME} '${BASEDIR}/finalize.sh'\n" | \
tee /var/spool/cron/crontabs/root &> /dev/null
chown \
@@ -262,10 +262,6 @@ zfs \
snapshot \
${HOSTNAME,,}/ROOT/${ID}@post-install
sudo \
-u ${USERNAME} \
"${BASEDIR}/finalize.sh"
printf \
'\033[?47h\033[2J\033[H'