|
@@ -19,32 +19,32 @@ if [ -f ${NEWROOT}/etc/sudoers ]; then
|
|
|
fi
|
|
|
|
|
|
|
|
|
-if [ -f ${NEWROOT}/lib/systemd/system/getty@.service ]; then
|
|
|
+if [ -f ${NEWROOT}/usr/lib/systemd/system/getty@.service ]; then
|
|
|
rm -f "${NEWROOT}/etc/systemd/system/getty.target.wants/getty@tty1.service"
|
|
|
- sed -e "s|/sbin/agetty --noclear|/sbin/live-getty|g" \
|
|
|
- "${NEWROOT}/lib/systemd/system/getty@.service" > \
|
|
|
+ sed -e "s|/sbin/agetty --noclear|/usr/sbin/live-getty|g" \
|
|
|
+ "${NEWROOT}/usr/lib/systemd/system/getty@.service" > \
|
|
|
"${NEWROOT}/etc/systemd/system/getty.target.wants/getty@tty1.service"
|
|
|
fi
|
|
|
|
|
|
-
|
|
|
-cat > ${NEWROOT}/sbin/live-getty <<_EOF
|
|
|
+
|
|
|
+cat > ${NEWROOT}/usr&sbin/live-getty <<_EOF
|
|
|
|
|
|
|
|
|
-if [ -x /sbin/agetty ]; then
|
|
|
- _getty=/sbin/agetty
|
|
|
-elif [ -x /sbin/getty ]; then
|
|
|
- _getty=/sbin/getty
|
|
|
+if [ -x /usr/sbin/agetty ]; then
|
|
|
+ _getty=/usr&sbin/agetty
|
|
|
+elif [ -x /usr/sbin/getty ]; then
|
|
|
+ _getty=/usr/sbin/getty
|
|
|
fi
|
|
|
|
|
|
-exec \${_getty} -n -l /sbin/live-autologin \$*
|
|
|
+exec \${_getty} -n -l /usr/sbin/live-autologin \$*
|
|
|
_EOF
|
|
|
-chmod 755 ${NEWROOT}/sbin/live-getty
|
|
|
+chmod 755 ${NEWROOT}/usr/sbin/live-getty
|
|
|
|
|
|
-
|
|
|
-cat > ${NEWROOT}/sbin/live-autologin <<_EOF
|
|
|
+
|
|
|
+cat > ${NEWROOT}/usr/sbin/live-autologin <<_EOF
|
|
|
|
|
|
|
|
|
. /etc/default/live.conf
|
|
|
-exec /bin/login -f \$USERNAME
|
|
|
+exec /usr/bin/login -f \$USERNAME
|
|
|
_EOF
|
|
|
-chmod 755 ${NEWROOT}/sbin/live-autologin
|
|
|
+chmod 755 ${NEWROOT}/usr/sbin/live-autologin
|