浏览代码

Added "gentoo=nontp" boot parameter for disabling NTP

Maxim Kammerer 12 年之前
父节点
当前提交
d7fe0617d4
共有 3 个文件被更改,包括 11 次插入1 次删除
  1. 2 1
      doc/changelog.txt
  2. 8 0
      src/etc/init.d/lockdown
  3. 1 0
      src/root/config/syslinux.cfg

+ 2 - 1
doc/changelog.txt

@@ -10,9 +10,10 @@
   * Reduced the number of SUID binaries via POSIX.1e capabilities
 
   * Replaced htpdate with NTP for time synchronization
+  * Added "gentoo=nontp" boot parameter for disabling NTP
   * Added "gentoo=obfs" boot parameter for obfsproxy Tor bridges
   * Added "gentoo=xkms" boot parameter for forcing X modesetting driver
-  * More robust Xorg autoconfiguration
+  * More robust Xorg autoconfiguration with sequential fallbacks
   * Added ASCII virtual keyboard table for OTFE password entry
 
   * Added UFRaw, a RAW images viewer and converter

+ 8 - 0
src/etc/init.d/lockdown

@@ -55,6 +55,14 @@ start() {
     fi
 
 
+    # Disable NTP if requested
+    if get_bootparam 'nontp'; then
+        ewarn Disabling NTP time synchronization
+        chmod a-x /etc/NetworkManager/dispatcher.d/01-ntp
+        eend $?
+    fi
+
+
     # Support non-anonymous mode
     if get_bootparam 'noanon'; then
         ewarn Non-anonymous profile has been selected via boot options

+ 1 - 0
src/root/config/syslinux.cfg

@@ -22,6 +22,7 @@
 #     gentoo=nox         - disable X server configuration (manual "startx" is ok)
 #     gentoo=nologo      - disable desktop background logo (includes lock screen)
 #     gentoo=noanon      - non-anonymous mode with separate user settings (CAUTION)
+#     gentoo=nontp       - disable NTP time synchronization (clock must be in UTC)
 #
 #     bridges=...        - comma-separated list of Tor bridges: IP[:port(=443)]
 #     gentoo=obfs        - enable obfsproxy transport for bridges