for future virtio support, checking virtio disks too (sneak this in along with other...
[bootcd.git] / initscripts / pl_sysinit
index 5cff15d..4f5d2ac 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+. /etc/init.d/pl_functions
+
 echo ""
 echo "PlanetLab BootCD - distro @PLDISTRO@ based on @FCDISTRO@"
 
@@ -140,10 +142,19 @@ echo ""
 echo $(date "+%H:%M:%S") "pl_sysinit: configuring kernel parameters"
 /sbin/sysctl -e -p /etc/sysctl.conf
 
+# startup rsyslog if available (we're *NOT* running the standard rc)
+syslog=/etc/rc.d/init.d/rsyslog
+[ -x $syslog ] && $syslog start
+
 echo ""
 echo $(date "+%H:%M:%S") "pl_sysinit: bringing network online"
 /etc/init.d/pl_netinit
 
+# just in case, sometimes we're seeing weird stuff already at this point
+pl_network_sanity_checks
+
 echo ""
 echo $(date "+%H:%M:%S") "pl_sysinit: attempting to sync clock"
 /usr/sbin/ntpdate -b -t 10 -u pool.ntp.org
+# save ntp clock to hardware
+/sbin/hwclock --systohc --utc