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

Loading…
Cancel
Save