Move mountfile copying code
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
eb6693901d
commit
f3110a21eb
@ -143,9 +143,6 @@ command_install () {
|
||||
|
||||
# pacman DBs are big, delete all sync dbs
|
||||
rm -rf "${work_dir}/var/lib/pacman/sync"
|
||||
|
||||
#TODO test for existance of images in work_dir
|
||||
cp "${MOUNTFILE}" "${work_dir}/mounts"
|
||||
}
|
||||
|
||||
# command_squash path image
|
||||
@ -189,6 +186,12 @@ command_image () {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -e "${MOUNTFILE}" ]; then
|
||||
echo "error: mount file '${MOUNTFILE}' does not exist, aborting."
|
||||
exit 1
|
||||
fi
|
||||
cp "${MOUNTFILE}" "${work_dir}/mounts"
|
||||
|
||||
kernelver=$(_kversion)
|
||||
basedir=${work_dir}
|
||||
[ "${work_dir:0:1}" != "/" ] && basedir="$(pwd)/${work_dir}"
|
||||
|
Loading…
Reference in New Issue
Block a user