diff --git a/pkgs/rootfs/mkrootfs.sh b/pkgs/rootfs/mkrootfs.sh index 78d14d3..a9f16d9 100644 --- a/pkgs/rootfs/mkrootfs.sh +++ b/pkgs/rootfs/mkrootfs.sh @@ -38,13 +38,14 @@ cat <<EOF > $out/etc/issue EOF -# replace agetty with busybox getty +# replace agetty with busybox getty (optionally autologin) mkdir $out/usr/lib/systemd/system/serial-getty@.service.d cat <<EOF > $out/usr/lib/systemd/system/serial-getty@.service.d/override.conf [Service] ExecStart= -ExecStart=-/sbin/getty -L %I 115200 vt100 +ExecStart=-/bin/login -f root EOF +# ExecStart=-/sbin/getty -L %I 115200 vt100 # Configure systemd-repart cat <<EOF > $out/etc/repart.d/10-esp.conf