소스 검색

installer: set timezone by creating /etc/localtime symlink

https://github.com/void-linux/void-docs/issues/692
https://github.com/void-linux/void-runit/pull/40
Duncan Overbruck 2 년 전
부모
커밋
fe2b9834d4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      installer.sh.in

+ 1 - 1
installer.sh.in

@@ -606,7 +606,7 @@ menu_timezone() {
 set_timezone() {
     local TIMEZONE="$(get_option TIMEZONE)"
 
-    sed -i -e "s|#TIMEZONE=.*|TIMEZONE=$TIMEZONE|g" $TARGETDIR/etc/rc.conf
+    ln -sf "/usr/share/zoneinfo/${TIMEZONE}" "${TARGETDIR}/etc/localtime"
 }
 
 menu_hostname() {