diff --git a/.linux_items/include/live/airootfs/etc/fstab b/.linux_items/include/live/airootfs/etc/fstab deleted file mode 100644 index e69de29b..00000000 diff --git a/.linux_items/include/live/airootfs/etc/machine-id b/.linux_items/include/live/airootfs/etc/machine-id deleted file mode 100644 index e69de29b..00000000 diff --git a/.linux_items/include/live/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf b/.linux_items/include/live/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf deleted file mode 100644 index 18966e67..00000000 --- a/.linux_items/include/live/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf +++ /dev/null @@ -1,3 +0,0 @@ -[Service] -ExecStart= -ExecStart=-/sbin/agetty --autologin wktech --noclear %I 38400 linux diff --git a/Build Linux b/Build Linux index 1d2034cc..2186ff41 100755 --- a/Build Linux +++ b/Build Linux @@ -155,6 +155,12 @@ function update_archlive() { echo "useradd -m -s /bin/zsh -G autologin,power,storage,wheel -U $username" >> "$LIVE_DIR/airootfs/root/customize_airootfs.sh" echo "echo '$username:$LINUX_TECH_PASSWORD' | chpasswd" >> "$LIVE_DIR/airootfs/root/customize_airootfs.sh" + # Tech user autologin + mkdir -p "$LIVE_DIR/airootfs/etc/systemd/system/getty@tty1.service.d" + echo "[Service]" >> "$LIVE_DIR/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf" + echo "ExecStart=" >> "$LIVE_DIR/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf" + echo "ExecStart=-/sbin/agetty --autologin $username --noclear %I 38400 linux" >> "$LIVE_DIR/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf" + # Timezone sed -i -r "s#zoneinfo/UTC#$LINUX_TIME_ZONE#g" "$LIVE_DIR/airootfs/root/customize_airootfs.sh"