touchprint/stage2/05-utils/00-run.sh
Logan Gartner ce6b2a628b
Unattended upgrades, added octo-config
Implemented unattended upgrades
Moved default systemd target command to utils
Octo-Config is no longer a blank text file and now does stuff
2020-08-12 16:45:21 -06:00

17 lines
509 B
Bash
Executable file

#!/bin/bash -e
mkdir -p "${ROOTFS_DIR}/usr/local/bin/"
install -m 755 files/octo-config "${ROOTFS_DIR}/usr/local/bin/octo-config"
install -m 755 files/first-time.sh ${ROOTFS_DIR}/etc/profile.d/first-time.sh
mkdir -p ${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d/
cat > ${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d/override.conf << 'EOF'
[Service]
ExecStart=
ExecStart=-/usr/sbin/agetty --autologin root --noclear %I $TERM
EOF
on_chroot << EOF
systemctl set-default multi-user.target
EOF