Remove autologin configuration for display manages, now done in livecd-tools
This commit is contained in:
parent
16127b652d
commit
d656ee17e0
@ -1,11 +1,3 @@
|
||||
# configure GDM for autologin
|
||||
#
|
||||
cat > $MOUNTDIR/etc/gdm/custom.conf << _EOF
|
||||
[daemon]
|
||||
AutomaticLoginEnable=true
|
||||
AutomaticLogin=liveuser
|
||||
_EOF
|
||||
|
||||
## provide a basilar gtkrc (to be improved)
|
||||
#cat > $MOUNTDIR/etc/gtk-2.0/gtkrc << _EOF
|
||||
#gtk-theme-name = "Default"
|
||||
|
@ -1,7 +1,3 @@
|
||||
# configure LXDM for autologin
|
||||
#
|
||||
sed -i "s|# autologin.*|autologin=liveuser|" $MOUNTDIR/etc/lxdm/lxdm.conf
|
||||
|
||||
# FIXME: ensure alternatives are correclty set
|
||||
chroot $MOUNTDIR update-alternatives-set-dri
|
||||
|
||||
|
@ -1,14 +1,3 @@
|
||||
# configure KDM for autologin
|
||||
#
|
||||
if [ -e $MOUNTDIR/opt/kde/share/config/kdm/kdmrc ]; then
|
||||
sed -i 's|[#]*AutoLoginEnable=.*|AutoLoginEnable=true|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
sed -i 's|[#]*AutoReLogin=.*|AutoReLogin=true|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
sed -i 's|[#]*AutoLoginUser=.*|AutoLoginUser=liveuser|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
fi
|
||||
|
||||
# FIXME: ensure alternatives are correclty set
|
||||
chroot $MOUNTDIR update-alternatives-set-dri
|
||||
|
||||
@ -33,10 +22,13 @@ chroot $MOUNTDIR rpm -e VirtualBox-vboxguest dkms --noscripts
|
||||
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
||||
# remove kernel headers installed by dkms
|
||||
chroot $MOUNTDIR smart remove kernel-${K}-headers -y
|
||||
done
|
||||
# remove unused initramfs generated by kernel
|
||||
rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${K}.img*
|
||||
# remove failsafe image to save space for livecd
|
||||
rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}-failsafe.img*
|
||||
for f in $MOUNTDIR/boot/initramfs-*.img*; do
|
||||
case "$f" in
|
||||
*failsafe*) continue ;;
|
||||
*) rm -f $f ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# remove some documentation to save space on CD
|
||||
|
@ -1,14 +1,3 @@
|
||||
# configure KDM for autologin
|
||||
#
|
||||
if [ -e $MOUNTDIR/opt/kde/share/config/kdm/kdmrc ]; then
|
||||
sed -i 's|[#]*AutoLoginEnable=.*|AutoLoginEnable=true|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
sed -i 's|[#]*AutoReLogin=.*|AutoReLogin=true|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
sed -i 's|[#]*AutoLoginUser=.*|AutoLoginUser=liveuser|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
fi
|
||||
|
||||
# FIXME: ensure alternatives are correclty set
|
||||
chroot $MOUNTDIR update-alternatives-set-dri
|
||||
|
||||
|
@ -1,14 +1,3 @@
|
||||
# configure KDM for autologin
|
||||
#
|
||||
if [ -e $MOUNTDIR/opt/kde/share/config/kdm/kdmrc ]; then
|
||||
sed -i 's|[#]*AutoLoginEnable=.*|AutoLoginEnable=true|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
sed -i 's|[#]*AutoReLogin=.*|AutoReLogin=true|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
sed -i 's|[#]*AutoLoginUser=.*|AutoLoginUser=liveuser|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
fi
|
||||
|
||||
# FIXME: ensure alternatives are correclty set
|
||||
chroot $MOUNTDIR update-alternatives-set-dri
|
||||
|
||||
|
@ -44,10 +44,6 @@ TSLIB_CALIBFILE=/etc/pointercal
|
||||
HOME=/root
|
||||
_EOF
|
||||
|
||||
# configure LXDM for autologin
|
||||
#
|
||||
sed -i "s|# autologin.*|autologin=liveuser|" $MOUNTDIR/etc/lxdm/lxdm.conf
|
||||
|
||||
# remove some documentation to save space
|
||||
for f in ChangeLog Changelog CHANGES TODO NEWS README README.txt; do
|
||||
find $MOUNTDIR/usr/share/doc -name $f -exec rm -f {} \;
|
||||
|
@ -44,17 +44,6 @@ TSLIB_CALIBFILE=/etc/pointercal
|
||||
HOME=/root
|
||||
_EOF
|
||||
|
||||
# configure KDM for autologin
|
||||
#
|
||||
if [ -e $MOUNTDIR/opt/kde/share/config/kdm/kdmrc ]; then
|
||||
sed -i 's|[#]*AutoLoginEnable=.*|AutoLoginEnable=true|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
sed -i 's|[#]*AutoReLogin=.*|AutoReLogin=true|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
sed -i 's|[#]*AutoLoginUser=.*|AutoLoginUser=liveuser|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
fi
|
||||
|
||||
# configure favorites in kde menu
|
||||
for f in /usr/share/applications/chromium-devel.desktop /opt/kde/share/applications/kaffeine.desktop; do
|
||||
chroot $MOUNTDIR /opt/kde/bin/kickoffcfg --add-favorite $f
|
||||
|
@ -1,14 +1,3 @@
|
||||
# configure KDM for autologin
|
||||
#
|
||||
if [ -e $MOUNTDIR/opt/kde/share/config/kdm/kdmrc ]; then
|
||||
sed -i 's|[#]*AutoLoginEnable=.*|AutoLoginEnable=true|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
sed -i 's|[#]*AutoReLogin=.*|AutoReLogin=true|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
sed -i 's|[#]*AutoLoginUser=.*|AutoLoginUser=liveuser|' \
|
||||
$MOUNTDIR/opt/kde/share/config/kdm/kdmrc
|
||||
fi
|
||||
|
||||
# FIXME: ensure alternatives are correclty set
|
||||
chroot $MOUNTDIR update-alternatives-set-dri
|
||||
|
||||
@ -28,10 +17,15 @@ chroot $MOUNTDIR rpm -e VirtualBox-vboxguest dkms --noscripts
|
||||
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
||||
# remove kernel headers installed by dkms
|
||||
chroot $MOUNTDIR smart remove kernel-${K}-headers -y
|
||||
# remove unused initramfs generated by kernel
|
||||
rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${K}.img*
|
||||
# remove failsafe image to save space for livecd
|
||||
rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}-failsafe.img*
|
||||
#rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}-failsafe.img*
|
||||
done
|
||||
# remove unused initramfs generated by kernel
|
||||
for f in $MOUNTDIR/boot/initramfs-*.img* do
|
||||
case "$f" in
|
||||
*failsafe*) continue ;;
|
||||
*) rm -f $f ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# remove some documentation to save space on CD
|
||||
|
Loading…
Reference in New Issue
Block a user