From 2cd1e7239fdbf60eea564c9183a6e31c03fca25e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 28 Apr 2009 13:43:03 +0000 Subject: [PATCH] * Atomically update grub/menu.lst (although we really need an fsync here). svn path=/nixos/trunk/; revision=15368 --- installer/grub-menu-builder.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/installer/grub-menu-builder.sh b/installer/grub-menu-builder.sh index 5d26cdb4327c..72635c364335 100644 --- a/installer/grub-menu-builder.sh +++ b/installer/grub-menu-builder.sh @@ -147,4 +147,6 @@ for generation in $( done -cp $tmp $target +# Atomically update /boot/grub/menu.lst. !!! should do an fsync() +# here on $tmp, especially on ext4. +mv $tmp $target