Contents of /trunk/mlivecdbuild/profiles/default-x86_64-NEXT/prepare_custom
Parent Directory | Revision Log
Revision 1474 -
(show annotations)
(download)
Wed Aug 3 10:54:10 2011 UTC (13 years, 1 month ago) by niro
File size: 518 byte(s)
Wed Aug 3 10:54:10 2011 UTC (13 years, 1 month ago) by niro
File size: 518 byte(s)
-enable mingetty with autologin
1 | #!/bin/bash |
2 | |
3 | # set an empty root password |
4 | chroot ${CDCHROOTDIR} passwd -d root |
5 | # add livecd user |
6 | chroot ${CDCHROOTDIR} useradd -m -s /bin/bash -g users -G audio,video,cdrom,cdrw,games,wheel livecd |
7 | chroot ${CDCHROOTDIR} passwd -d livecd |
8 | |
9 | # activate mingetty with autologin support in favor of agetty |
10 | if [[ -x ${CDCHROOTDIR}/sbin/mingetty ]] && [[ -f ${CDCHROOTDIR}/lib/systemd/system/getty@.service ]] |
11 | then |
12 | sed -i "s:/sbin/agetty:/sbin/mingetty --autologin root:g" ${CDCHROOTDIR}/lib/systemd/system/getty@.service |
13 | fi |