2020-08-12 04:06:56 -04:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2020-08-12 17:08:19 -04:00
|
|
|
mkdir -p "${ROOTFS_DIR}/usr/local/bin/"
|
|
|
|
install -m 755 files/octo-config "${ROOTFS_DIR}/usr/local/bin/octo-config"
|
2020-08-14 03:40:24 -04:00
|
|
|
install -m 755 files/first-time.sh "${ROOTFS_DIR}/etc/profile.d/first-time.sh"
|
|
|
|
install -m 755 files/octo-lib.sh "${ROOTFS_DIR}/usr/local/lib/octo-lib.sh"
|
2020-08-12 04:06:56 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-08-12 18:45:21 -04:00
|
|
|
on_chroot << EOF
|
|
|
|
systemctl set-default multi-user.target
|
|
|
|
EOF
|