[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 2/2] Remove kernel backups before handle linux image



From: Otavio Salvador <otavio@ossystems.com.br>

There's some corner cases that can cause you to have backup files of
initrd or something related. Since those backups aren't useful to us
we remove them before proceed otherwise we'll fail to copy them since
the wildchar will match more then one file and the target isn't a
directory.
---

 src/scripts/21image.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/scripts/21image.sh b/src/scripts/21image.sh
index 57c3d9f..bc35d0d 100644
--- a/src/scripts/21image.sh
+++ b/src/scripts/21image.sh
@@ -210,6 +210,9 @@ Syslinux ()
 
 Linuximage ()
 {
+	# Remove backup files before proceed
+	rm -f "${LIVE_CHROOT}"/boot/*.bak
+
 	case "${1}" in
 		iso)
 			# Copy linux-image


Reply to: