Magellan Linux

Contents of /trunk/mlivecdbuild/profiles/default-x86_64-NEXT/prepare_custom

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1474 - (show annotations) (download)
Wed Aug 3 10:54:10 2011 UTC (12 years, 10 months 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