Commit b609b81d95d0391ba94af2faaa697c9a5f9633b8

Authored by Silvan Calarco
1 parent 1c3dc1a870
Exists in master

installer.sh: copy live timezone setting to installed system; remove code runnin…

…g obsoleted MAKEDEV script

Showing 1 changed file with 3 additions and 10 deletions Side-by-side Diff

installer/installer.sh
... ... @@ -414,9 +414,10 @@
414 414 Installation time: $TIME_ELAPSED minutes"
415 415  
416 416 CONFIGURED_FILES="/etc/vconsole.conf /etc/locale.conf \
417   - /etc/X11/xorg.conf /etc/X11/xorg.conf.d/*.conf"
  417 + /etc/X11/xorg.conf /etc/X11/xorg.conf.d/*.conf \
  418 + /etc/localtime /etc/timezone"
418 419 for f in $CONFIGURED_FILES; do
419   - cp $f ${MOUNTPOINT}/${f}
  420 + [ -r $f ] && cp -P $f ${MOUNTPOINT}/${f}
420 421 done
421 422 sed -i "/^LANG=.*/d;1s/^/LANG=$LANG\n/" /etc/locale.conf
422 423 echo
... ... @@ -424,14 +425,6 @@
424 425 mkdir -p $MOUNTPOINT/{dev,home,media,mnt,proc,run,sys,tmp}
425 426 chmod 1777 $MOUNTPOINT/tmp
426 427 chmod 0750 $MOUNTPOINT/root
427   -
428   -# create base devices
429   -[ -x /lib/udev/devices/MAKEDEV ] || {
430   - echo $"Error: cannot run MAKEDEV; aborting." >&2
431   - abort
432   -}
433   -
434   -UDEV_ROOT=$MOUNTPOINT/dev /lib/udev/devices/MAKEDEV
435 428  
436 429 dcop_write $"Binding system dirs to new mountpoint..." 73
437 430 echo $"Binding /dev, /proc, /run and /sys to new mountpoint"