1
0

changed rsync options

This commit is contained in:
Daniel Tartavel 2019-03-28 09:14:36 +01:00
parent 17cb092b9a
commit 48b451c6b8

View File

@ -276,7 +276,7 @@ EOF" >>"$BUILD_PATH/second_stage_install.sh"
info "Copying skel in root directory" info "Copying skel in root directory"
/bin/rsync -a /etc/skel/ "$BUILD_PATH/root/" /bin/rsync -rlptH /etc/skel/ "$BUILD_PATH/root/"
case $TARGET in case $TARGET in
@ -601,8 +601,8 @@ brcmfmac" >> "$BUILD_PATH"/etc/modules
fi fi
info "copying Mageia image to root partition" info "copying Mageia image to root partition"
/bin/rsync -a --exclude "$ARM_BOOT/" --exclude "qemu-arm-static*" "$BUILD_PATH/" "$ROOT/" /bin/rsync -rlptDH --exclude "$ARM_BOOT/" --exclude "qemu-arm-static*" "$BUILD_PATH/" "$ROOT/"
/bin/rsync -a "$ARM_BOOT/" "$BOOT/" /bin/rsync -rlptDH "$ARM_BOOT/" "$BOOT/"
;; ;;
odroid) odroid)
ODROID_BOOT="$BUILD_PATH/mnt/odroid_boot" ODROID_BOOT="$BUILD_PATH/mnt/odroid_boot"
@ -620,8 +620,8 @@ brcmfmac" >> "$BUILD_PATH"/etc/modules
info "Copying extlinux.conf on $ODROID_BOOT" info "Copying extlinux.conf on $ODROID_BOOT"
cp -R "$BUILD_PATH/boot/extlinux" "$ODROID_BOOT/" cp -R "$BUILD_PATH/boot/extlinux" "$ODROID_BOOT/"
info "copying Mageia image to root partition" info "copying Mageia image to root partition"
/bin/rsync -a --exclude "$ODROID_BOOT/" --exclude "qemu-arm-static*" "$BUILD_PATH/" "$ROOT/" /bin/rsync -rlptDH --exclude "$ODROID_BOOT/" --exclude "qemu-arm-static*" "$BUILD_PATH/" "$ROOT/"
/bin/rsync -a "$ODROID_BOOT/" "$BOOT/" /bin/rsync -rlptDH "$ODROID_BOOT/" "$BOOT/"
;; ;;
esac esac
@ -656,8 +656,8 @@ brcmfmac" >> "$BUILD_PATH"/etc/modules
copyingcommon() copyingcommon()
{ {
title "Copying common files and configuration" title "Copying common files and configuration"
rsync -aP "$SOURCE_PATH/common/" "$ROOT/" rsync -rlptDH "$SOURCE_PATH/common/" "$ROOT/"
rsync -aP "$SOURCE_PATH/tools/"*.sh "$ROOT/usr/local/bin/" rsync -rlptDH "$SOURCE_PATH/tools/"*.sh "$ROOT/usr/local/bin/"
chown root:root "$ROOT/usr/local/bin/" chown root:root "$ROOT/usr/local/bin/"
} }