From a0cf3c82913961bf63a8a7696d09582e06110a93 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Wed, 26 Oct 2011 15:52:34 -0500 Subject: [PATCH] Do update copies --- tools/build_usb_boot.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/build_usb_boot.sh b/tools/build_usb_boot.sh index c79cf2bc3a..fc5e96917f 100755 --- a/tools/build_usb_boot.sh +++ b/tools/build_usb_boot.sh @@ -33,7 +33,7 @@ fi # Get some more stuff from syslinux for i in memdisk menu.c32; do - cp -p /usr/lib/syslinux/$i $DEST_DIR/syslinux + cp -pu /usr/lib/syslinux/$i $DEST_DIR/syslinux done CFG=$DEST_DIR/syslinux/syslinux.cfg @@ -60,7 +60,7 @@ fi if [ ! -r $PXEDIR/stack-initrd.gz ]; then gzip -1 -c $PXEDIR/stack-initrd.img >$PXEDIR/stack-initrd.gz fi -#cp -p $PXEDIR/stack-initrd.gz $DEST_DIR/ubuntu +cp -pu $PXEDIR/stack-initrd.gz $DEST_DIR/ubuntu if [ ! -r $PXEDIR/vmlinuz-*-generic ]; then MNTDIR=`mktemp -d --tmpdir mntXXXXXXXX` @@ -76,7 +76,7 @@ if [ ! -r $PXEDIR/vmlinuz-*-generic ]; then fi exit 1 else - cp -p $MNTDIR/boot/vmlinuz-*-generic $PXEDIR + cp -pu $MNTDIR/boot/vmlinuz-*-generic $PXEDIR fi umount $MNTDIR rmdir $MNTDIR @@ -85,7 +85,7 @@ fi # Get generic kernel version KNAME=`basename $PXEDIR/vmlinuz-*-generic` KVER=${KNAME#vmlinuz-} -cp -p $PXEDIR/vmlinuz-$KVER $DEST_DIR/ubuntu +cp -pu $PXEDIR/vmlinuz-$KVER $DEST_DIR/ubuntu cat >>$CFG <>$CFG <