small fixes
This commit is contained in:
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
IFS=,; set -- $luks_opts; unset IFS
|
IFS=,; set -- $luks_opts; unset IFS
|
||||||
|
|
||||||
set -C; for opt; do case "${opt%%=*}" in
|
for opt; do case "${opt%%=*}" in
|
||||||
key | header)
|
key | header)
|
||||||
cp "${opt#*=}" "${tmpdir}/root/${opt%%=*}"
|
cp "${opt#*=}" "${tmpdir}/root/${opt%%=*}"
|
||||||
chmod 400 "${tmpdir}/root/${opt%%=*}"
|
chmod 400 "${tmpdir}/root/${opt%%=*}"
|
||||||
@ -35,8 +35,7 @@
|
|||||||
sed "s|${opt#*=}|/root/${opt%%=*}|" \
|
sed "s|${opt#*=}|/root/${opt%%=*}|" \
|
||||||
"${tmpdir}/etc/tinyramfs/config" > "${tmpdir}/_"
|
"${tmpdir}/etc/tinyramfs/config" > "${tmpdir}/_"
|
||||||
|
|
||||||
cp "${tmpdir}/_" "${tmpdir}/etc/tinyramfs/config"
|
mv "${tmpdir}/_" "${tmpdir}/etc/tinyramfs/config"
|
||||||
chmod 600 "${tmpdir}/etc/tinyramfs/config"
|
chmod 600 "${tmpdir}/etc/tinyramfs/config"
|
||||||
rm "${tmpdir}/_"
|
esac || panic; done
|
||||||
esac || panic; done; set +C
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user