installer.sh: copy live timezone setting to installed system; remove code running obsoleted MAKEDEV script

This commit is contained in:
Silvan Calarco 2014-08-30 14:01:28 +02:00
parent 1c3dc1a870
commit b609b81d95

View File

@ -414,9 +414,10 @@ ${MOUNT_SPACE} Mbytes copied
Installation time: $TIME_ELAPSED minutes"
CONFIGURED_FILES="/etc/vconsole.conf /etc/locale.conf \
/etc/X11/xorg.conf /etc/X11/xorg.conf.d/*.conf"
/etc/X11/xorg.conf /etc/X11/xorg.conf.d/*.conf \
/etc/localtime /etc/timezone"
for f in $CONFIGURED_FILES; do
cp $f ${MOUNTPOINT}/${f}
[ -r $f ] && cp -P $f ${MOUNTPOINT}/${f}
done
sed -i "/^LANG=.*/d;1s/^/LANG=$LANG\n/" /etc/locale.conf
echo
@ -425,14 +426,6 @@ mkdir -p $MOUNTPOINT/{dev,home,media,mnt,proc,run,sys,tmp}
chmod 1777 $MOUNTPOINT/tmp
chmod 0750 $MOUNTPOINT/root
# create base devices
[ -x /lib/udev/devices/MAKEDEV ] || {
echo $"Error: cannot run MAKEDEV; aborting." >&2
abort
}
UDEV_ROOT=$MOUNTPOINT/dev /lib/udev/devices/MAKEDEV
dcop_write $"Binding system dirs to new mountpoint..." 73
echo $"Binding /dev, /proc, /run and /sys to new mountpoint"
mount -o bind /dev $MOUNTPOINT/dev || {