12 lines
332 B
Bash
12 lines
332 B
Bash
|
#!/bin/bash -e
|
||
|
|
||
|
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
|
||
|
|