Compare commits
7 Commits
817653120c
...
pre-instal
Author | SHA1 | Date | |
---|---|---|---|
6268d684c6
|
|||
ee48fb7560
|
|||
bba89f8185
|
|||
802fa4f3c8
|
|||
26f59f4a91
|
|||
ae6fc22074
|
|||
7244296734
|
14
post-inst.sh
14
post-inst.sh
@@ -233,11 +233,11 @@ EOF
|
||||
|
||||
if [[ "${ID}" == 'fedora' ]]; then
|
||||
printf \
|
||||
'@reboot /usr/bin/home-fix.sh\n' | \
|
||||
"@reboot\tsudo -u ${USERNAME} '${BASEDIR}/finalize.sh'\n@reboot\t/usr/bin/home-fix.sh\n" | \
|
||||
tee /var/spool/cron/root &> /dev/null
|
||||
elif [[ "${ID}" == 'debian' ]]; then
|
||||
printf \
|
||||
'@reboot /usr/bin/home-fix.sh\n' | \
|
||||
"@reboot\tsudo -u ${USERNAME} '${BASEDIR}/finalize.sh'\n@reboot\t/usr/bin/home-fix.sh\n" | \
|
||||
tee /var/spool/cron/crontabs/root &> /dev/null
|
||||
|
||||
chown \
|
||||
@@ -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
|
||||
@@ -261,7 +269,7 @@ cat << EOF
|
||||
|
||||
Script has finished running
|
||||
|
||||
Please reboot your computer
|
||||
Please exit the chroot
|
||||
|
||||
Press any key to return to the main menu
|
||||
EOF
|
||||
|
@@ -61,8 +61,9 @@ if [[ "${ID}" == 'debian' ]]; then
|
||||
--yes \
|
||||
mmdebstrap \
|
||||
gdisk \
|
||||
zfsutils-linux \
|
||||
systemd-timesyncd
|
||||
systemd-timesyncd \
|
||||
whois \
|
||||
zfsutils-linux
|
||||
elif [[ "${ID}" == 'fedora' ]]; then
|
||||
if [[ "${VERSION_ID}" -lt '41' ]]; then
|
||||
dnf config-manager \
|
||||
@@ -190,8 +191,7 @@ printf \
|
||||
|
||||
chroot \
|
||||
/mnt \
|
||||
bash \
|
||||
--login
|
||||
"$(printf "${BASEDIR}\n" | sed 's|.*\/|\/|')/install.sh"
|
||||
|
||||
mount | grep -v zfs | tac | awk '/\/mnt/ {print $3}' | xargs -I {} umount -Rlf {}
|
||||
|
||||
|
Reference in New Issue
Block a user