Port some cleanups from openmamba (devel) target

This commit is contained in:
Silvan Calarco 2011-05-28 15:20:16 +02:00
parent c1ea3ec88d
commit 19c9010f07
4 changed files with 3 additions and 24 deletions

View File

@ -105,6 +105,9 @@ find $MOUNTDIR/usr/share/locale \
-maxdepth 1 -mindepth 1 -type d \ -maxdepth 1 -mindepth 1 -type d \
! -name it* ! -name en* ! -name C ! -name l10n -exec rm -rf {} \; ! -name it* ! -name en* ! -name C ! -name l10n -exec rm -rf {} \;
# cleanup: prevent generating a cleanfs script crash due to a unionfs bug
rm -rf $MOUNTDIR/tmp/.ICE-unix
#$CHROOTCMD chkconfig --add acpid || #$CHROOTCMD chkconfig --add acpid ||
# { echo "$mkcd_me: fatal error, aborting installation" >&2 # { echo "$mkcd_me: fatal error, aborting installation" >&2
# { (exit 1); exit 1; }; } # { (exit 1); exit 1; }; }

View File

@ -13,14 +13,6 @@ echo "Forcing \`inittab' to open tty root shells with no login..."
sed -i 's,^\([1-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab sed -i 's,^\([1-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab
sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
# configure extlinux boot loader
cat > $MOUNTDIR/boot/extlinux.conf << _EOF
DEFAULT $PLATFORM
LABEL $PLATFORM
KERNEL /boot/vmlinuz-${KERNEL_VER}${KERNEL_EXTRAVER}
APPEND video=uvesafb:1024x768-32,ywrap,mtrr root=$ROOTDEV console=tty1 initrd=/boot/initramfs-${KERNEL_VER}${KERNEL_EXTRAVER}.img.gz splash=silent quiet
_EOF
# configure for runlevel 5 boot # configure for runlevel 5 boot
sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab

View File

@ -13,14 +13,6 @@ echo "Forcing \`inittab' to open tty root shells with no login..."
sed -i 's,^\([1-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab sed -i 's,^\([1-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab
sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
# configure extlinux boot loader
cat > $MOUNTDIR/boot/extlinux.conf << _EOF
DEFAULT $PLATFORM
LABEL $PLATFORM
KERNEL /boot/vmlinuz-${KERNEL_VER}${KERNEL_EXTRAVER}
APPEND video=uvesafb:1024x768-32,ywrap,mtrr root=$ROOTDEV console=tty1 initrd=/boot/initramfs-${KERNEL_VER}${KERNEL_EXTRAVER}.img.gz splash=silent quiet
_EOF
# configure for runlevel 5 boot # configure for runlevel 5 boot
sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab

View File

@ -13,14 +13,6 @@ echo "Forcing \`inittab' to open tty root shells with no login..."
sed -i 's,^\([1-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab sed -i 's,^\([1-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab
sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
# configure extlinux boot loader
cat > $MOUNTDIR/boot/extlinux.conf << _EOF
DEFAULT $PLATFORM
LABEL $PLATFORM
KERNEL /boot/vmlinuz-${KERNEL_VER}${KERNEL_EXTRAVER}
APPEND video=uvesafb:1024x768-32,ywrap,mtrr root=$ROOTDEV console=tty1 initrd=/boot/initramfs-${KERNEL_VER}${KERNEL_EXTRAVER}.img.gz splash=silent quiet
_EOF
# configure for runlevel 5 boot # configure for runlevel 5 boot
sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab