All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 585007d4 authored by Mike Hibler's avatar Mike Hibler

Blew the ntp.conf fixup in slicefix, now it should work.

See Mike thrash. Thrash Mike, thrash!
parent 03ea0735
......@@ -147,15 +147,12 @@ localize_image() {
# Check the NTP configuration.
if [ -e /etc/ntp.conf ]; then
cmp -s /etc/ntp.conf $MNT/etc/ntp.conf
if [ $? -ne 0 ]; then
echo " updating /etc/ntp.conf"
cp -pf /etc/ntp.conf $MNT/etc/ntp.conf || {
echo "Failed to create /etc/ntp.conf"
return 1
}
fi
# XXX cannot put drift in /etc/ntp.drift on Linux
if [ -d "$MNT/var/lib/ntp" ]; then
......
......@@ -1248,8 +1248,6 @@ sub localize
# Check the NTP configuration.
if (-e "/etc/ntp.conf") {
system("cmp -s /etc/ntp.conf $imageroot/etc/ntp.conf >/dev/null 2>&1");
if ($?) {
print "Updating /etc/ntp.conf\n";
system("cp -pf /etc/ntp.conf $imageroot/etc/ntp.conf");
......@@ -1259,13 +1257,12 @@ sub localize
}
# XXX cannot use /etc/ntp.drift for Linux
if (-d "/var/lib/ntp") {
if (-d "$imageroot/var/lib/ntp") {
file_replace_string($imageroot, "/etc/ntp.conf",
"/etc/ntp.drift",
"/var/lib/ntp/ntp.drift");
}
}
}
}
sub hardwire_boss_node
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment