Password for latest minimal from github

If by no network you mean wifi - then no - not related.

My tests is with the ethernet on rpi5 - still have to figure out what has changed.

A while back I created [root tip] [How To] Hacking ARM install image to connect to your WiFi

patch an existing image

There is several steps involved to patch an existing image.

Open the sdcard’s root filesystem, using your file manager and make a note on the mountpoint.

/run/media/$USER/ROOT_MNJRO

Open a terminal - keep in mind that paths are relative to the mountpoint - create variable to hold the path

ROOT_MNJRO=/run/media/$USER/ROOT_MNJRO

network

Navigate to the etc/systemd/network folder

cd  $ROOT_MNJRO/etc/systemd/network

Create a network definition for your ethernet NIC.

cat << EOF >> end0.network
[Match]
Name=end0

[Network]
DHCP=yes
EOF

Navigate to multi-user.target.wants

cd $ROOT_MNJRO/etc/systemd/system/multi-user.target.wants

And create a symlink to enable systemd-networkd

ln -s /usr/lib/systemd/system/systemd-networkd

Do the same for systemd-resolved

ln -s /usr/lib/systemd/system/systemd-resolved

autologin

The buildarmimg for the minimal/server image creates a copy of the file usr/lib/systemd/getty@.service to activate root autologin. This approach no longer works.

Still in the terminal - inside the mounted image - list the files

ls $ROOT_MNJRO/usr/lib/systemd/system/getty@*

You should see two files

  • getty@.service
  • getty@.service.bak

Replace the getty@.service with getty@.service.bak

mv $ROOT_MNJRO/usr/lib/systemd/system/getty\@.service.bak $ROOT_MNJRO/usr/lib/systemd/system/getty\@.service

Navigate to the root image etc/systemd/system folder

cd $ROOT_MNJRO/etc/systemd/system

Create a override folder for getty and enter the folder

mkdir getty@tty1.service.d
cd getty@tty1.service.d

Create the autologin.conf in the new folder

cat << EOF >> autologin.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin root %I $TERM
EOF

patch the oem installer

To make sure the installer cleans up correctly - navigate to usr/share/manjaro-arm-oem-installer

cd $ROOT_MNJRO/usr/share/manjaro-arm-installer

Edit the installer script

nano manjaro-arm-oem-install

Go to the end of the script

msg "Configuration complete. Cleaning up..."
mv /usr/lib/systemd/system/getty@.service.bak /usr/lib/systemd/system/getty@.service

Amend by commenting the reference to restoring the original getty@.service and instead remove the override in /etc/systemd/system folder

#mv /usr/lib/systemd/system/getty@.service.bak /usr/lib/systemd/system/getty@.service
rm -rf /etc/systemd/getty\@tty1.service.d

Save the file and unmout the partition

1 Like