forked from mirrored-repos/manjaro-tools
[util-iso] create isomounts on the fly
This commit is contained in:
parent
d63e4c8ded
commit
0db6d71897
1 changed files with 31 additions and 7 deletions
|
@ -587,19 +587,43 @@ make_isolinux() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
generate_isomounts(){
|
||||||
|
echo '# syntax: <img> <arch> <mount point> <type> <kernel argument>' > $1
|
||||||
|
echo '# Sample kernel argument in syslinux: overlay=extra,extra2' >> $1
|
||||||
|
echo '' >> $1
|
||||||
|
|
||||||
|
msg2 "Writing livecd entry ..."
|
||||||
|
echo "${arch}/livecd-image.sqfs ${arch} / squashfs" >> $1
|
||||||
|
|
||||||
|
if [[ -f Packages-Lng ]] ; then
|
||||||
|
msg2 "Writing lng entry ..."
|
||||||
|
echo "${arch}/lng-image.sqfs ${arch} / squashfs" >> $1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f Packages-Xorg ]] ; then
|
||||||
|
msg2 "Writing pkgs entry ..."
|
||||||
|
echo "${arch}/pkgs-image.sqfs ${arch} / squashfs" >> $1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f "${packages_custom}" ]] ; then
|
||||||
|
msg2 "Writing ${custom} entry ..."
|
||||||
|
echo "${arch}/${custom}-image.sqfs ${arch} / squashfs" >> $1
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg2 "Writing root entry ..."
|
||||||
|
echo "${arch}/root-image.sqfs ${arch} / squashfs" >> $1
|
||||||
|
}
|
||||||
|
|
||||||
# Process isomounts
|
# Process isomounts
|
||||||
make_isomounts() {
|
make_isomounts() {
|
||||||
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
|
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
|
||||||
msg "Process [isomounts]"
|
msg "Creating [isomounts]"
|
||||||
|
|
||||||
sed "s|@ARCH@|${arch}|g" isomounts > ${work_dir}/iso/${install_dir}/isomounts
|
generate_isomounts "${work_dir}/iso/${install_dir}/isomounts"
|
||||||
if [[ -n ${custom} ]];then
|
|
||||||
sed -e "s|@custom@|${custom}|" -i ${work_dir}/iso/${install_dir}/isomounts
|
|
||||||
fi
|
|
||||||
|
|
||||||
: > ${work_dir}/build.${FUNCNAME}
|
: > ${work_dir}/build.${FUNCNAME}
|
||||||
|
|
||||||
msg "Done processing [isomounts]"
|
msg "Done creating [isomounts]"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue