[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] [PATCH] image_hd: Pruefen, ob root-local existiert
! image_hd: Wenn root-local nicht existiert, gibt das cp eine Fehlermeldung,
was regelmaessig Leute verwirrt. Erstmal pruefen tut keinem weh.
Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
build/scripts/image_hd | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/build/scripts/image_hd b/build/scripts/image_hd
index d8fb3f6..7014fe6 100755
--- a/build/scripts/image_hd
+++ b/build/scripts/image_hd
@@ -86,7 +86,7 @@ $SUDO chmod 777 -R $MOUNT
# Daten Kopieren
cp -rP --preserve=links,timestamps $ROOT/* $ROOT_COMMON/* $ROOT_HD/* $MOUNT/
-cp -rP --preserve=links,timestamps $ROOT_LOCAL/* $MOUNT/
+[ -d $ROOT_LOCAL ] && cp -rP --preserve=links,timestamps $ROOT_LOCAL/* $MOUNT/
# GRUB-Konfiguration kopieren
mkdir -p $MOUNT/boot/grub
--
1.7.2