LVM has read-only files that would prompt for deletion

This only happens when testing as a non-root user, but even so, it
doesn't hurt to make this less annoying.
master
Georgi Georgiev 12 years ago committed by Georgi Georgiev
parent 2f2fdcb58f
commit 90a394350d

@ -273,7 +273,7 @@ append_iscsi(){
append_lvm(){
if [ -d "${TEMP}/initramfs-lvm-temp" ]
then
rm -r "${TEMP}/initramfs-lvm-temp/"
rm -rf "${TEMP}/initramfs-lvm-temp/"
fi
cd ${TEMP}
mkdir -p "${TEMP}/initramfs-lvm-temp"/{bin,sbin}
@ -305,7 +305,7 @@ append_lvm(){
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing lvm cpio"
cd "${TEMP}"
rm -r "${TEMP}/initramfs-lvm-temp/"
rm -rf "${TEMP}/initramfs-lvm-temp/"
}
append_mdadm(){

Loading…
Cancel
Save