installer.sh: copy live timezone setting to installed system; remove code running obsoleted MAKEDEV script
This commit is contained in:
parent
1c3dc1a870
commit
b609b81d95
@ -414,9 +414,10 @@ ${MOUNT_SPACE} Mbytes copied
|
|||||||
Installation time: $TIME_ELAPSED minutes"
|
Installation time: $TIME_ELAPSED minutes"
|
||||||
|
|
||||||
CONFIGURED_FILES="/etc/vconsole.conf /etc/locale.conf \
|
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
|
for f in $CONFIGURED_FILES; do
|
||||||
cp $f ${MOUNTPOINT}/${f}
|
[ -r $f ] && cp -P $f ${MOUNTPOINT}/${f}
|
||||||
done
|
done
|
||||||
sed -i "/^LANG=.*/d;1s/^/LANG=$LANG\n/" /etc/locale.conf
|
sed -i "/^LANG=.*/d;1s/^/LANG=$LANG\n/" /etc/locale.conf
|
||||||
echo
|
echo
|
||||||
@ -425,14 +426,6 @@ mkdir -p $MOUNTPOINT/{dev,home,media,mnt,proc,run,sys,tmp}
|
|||||||
chmod 1777 $MOUNTPOINT/tmp
|
chmod 1777 $MOUNTPOINT/tmp
|
||||||
chmod 0750 $MOUNTPOINT/root
|
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
|
dcop_write $"Binding system dirs to new mountpoint..." 73
|
||||||
echo $"Binding /dev, /proc, /run and /sys to new mountpoint"
|
echo $"Binding /dev, /proc, /run and /sys to new mountpoint"
|
||||||
mount -o bind /dev $MOUNTPOINT/dev || {
|
mount -o bind /dev $MOUNTPOINT/dev || {
|
||||||
|
Loading…
Reference in New Issue
Block a user