Verified Commit 46631535 authored by Dan Johansen's avatar Dan Johansen
Browse files

[buildarmimg] add manjaro to autologin users in phosh edition

parent 3c749304
......@@ -278,9 +278,13 @@ create_rootfs_img() {
cp -a /etc/ca-certificates/extracted/tls-ca-bundle.pem $ROOTFS_IMG/rootfs_$ARCH/etc/ca-certificates/extracted/
echo "manjaro-arm" | tee --append $ROOTFS_IMG/rootfs_$ARCH/etc/hostname 1> /dev/null 2>&1
case "$EDITION" in
echo "No OEM setup!"
$NSPAWN $ROOTFS_IMG/rootfs_$ARCH groupadd -r autologin
$NSPAWN $ROOTFS_IMG/rootfs_$ARCH gpasswd -a manjaro autologin
echo "Enabling SSH login for root user for headless setup..."
sed -i s/"#PermitRootLogin prohibit-password"/"PermitRootLogin yes"/g $ROOTFS_IMG/rootfs_$ARCH/etc/ssh/sshd_config
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment