|
@@ -22,12 +22,14 @@ if [ -f ${NEWROOT}/etc/sudoers ]; then
|
|
fi
|
|
fi
|
|
|
|
|
|
# Enable autologin for agetty(8).
|
|
# Enable autologin for agetty(8).
|
|
-rm -f "${NEWROOT}/etc/systemd/system/getty.target.wants/[email protected]"
|
|
|
|
-sed -e "s|/sbin/agetty --noclear|& -a ${USERNAME}|g" \
|
|
|
|
- "${NEWROOT}/usr/lib/systemd/system/[email protected]" > \
|
|
|
|
- "${NEWROOT}/etc/systemd/system/[email protected]"
|
|
|
|
-ln -sf /etc/systemd/system/[email protected] \
|
|
|
|
- "${NEWROOT}/etc/systemd/system/getty.target.wants/[email protected]"
|
|
|
|
|
|
+if [ -d ${NEWROOT}/etc/systemd/system ]; then
|
|
|
|
+ rm -f "${NEWROOT}/etc/systemd/system/getty.target.wants/[email protected]"
|
|
|
|
+ sed -e "s|/sbin/agetty --noclear|& -a ${USERNAME}|g" \
|
|
|
|
+ "${NEWROOT}/usr/lib/systemd/system/[email protected]" > \
|
|
|
|
+ "${NEWROOT}/etc/systemd/system/[email protected]"
|
|
|
|
+ ln -sf /etc/systemd/system/[email protected] \
|
|
|
|
+ "${NEWROOT}/etc/systemd/system/getty.target.wants/[email protected]"
|
|
|
|
+fi
|
|
|
|
|
|
if [ -d ${NEWROOT}/etc/polkit-1 ]; then
|
|
if [ -d ${NEWROOT}/etc/polkit-1 ]; then
|
|
# If polkit is installed allow users in the wheel group to run anything.
|
|
# If polkit is installed allow users in the wheel group to run anything.
|