summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-16 09:30:13 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-16 09:30:13 (EST)
commit1e47af06bd4baf9294a792c9c2df518a3ad7e74b (patch)
tree054e4c1ab326ceffe25516e1871f070f27fc463b
parent7efef6434e0d4101b04cbce538526c31dcbd8ae2 (diff)
Revert "profile_make_initramfs(): Remove all but /boot"
This reverts commit 7efef6434e0d4101b04cbce538526c31dcbd8ae2.
-rw-r--r--src/profile/proteanos.sh13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh
index 87001a6..28d2bbd 100644
--- a/src/profile/proteanos.sh
+++ b/src/profile/proteanos.sh
@@ -417,7 +417,6 @@ prof_proteanos_make_initramfs()
local plat="${2}"
shift 2
local init_created=
- local boot_created=
case "${arch}" in
*-linux-*)
@@ -427,12 +426,7 @@ prof_proteanos_make_initramfs()
else
init_created=false
fi
- if ! [ -d boot ]; then
- mkdir boot
- boot_created=true
- else
- boot_created=false
- fi
+ mkdir -p boot
find . -xdev -a \! -path './boot/*' -a \
\! -path './prokit/*' | \
${CPIO} -o -H newc | \
@@ -441,11 +435,6 @@ prof_proteanos_make_initramfs()
if ${init_created}; then
rm -f init
fi
- if ! ${boot_created}; then
- find . -xdev -a \! -path './boot/*' -a \
- \! -path './prokit/*' -a \! -type d | \
- xargs rm -f
- fi
;;
esac
return 1