mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-15 15:55:24 +01:00
Add options for;
- disk to be created (blank disk given to live-bootstrap) (default) - disk to already exist but sources downloaded within live-bootstrap - sources to be downloaded outside live-bootstrap (non-blank disk given to live-bootstrap) Also migrate sysb to use sys_transfer in QEMU mode also. Note that this means copy_sysc is now irrelevant. sysc is *always* sourced from sysa.
This commit is contained in:
parent
6ea1b8e295
commit
0ce50a6393
9 changed files with 219 additions and 51 deletions
|
|
@ -412,6 +412,7 @@ populate_device_nodes() {
|
|||
|
||||
sys_transfer() {
|
||||
local dest=$1
|
||||
local sys_sources=$2
|
||||
|
||||
mkdir -p "${dest}/${PREFIX}/bin" "${dest}/${PREFIX}/src"
|
||||
|
||||
|
|
@ -419,11 +420,13 @@ sys_transfer() {
|
|||
cp "${PREFIX}/bin/bash" "${PREFIX}/bin/tar" "${PREFIX}/bin/bzip2" "${dest}${PREFIX}/bin/"
|
||||
|
||||
# Transfer misc files
|
||||
cp "${SOURCES}/helpers.sh" "${SOURCES}/SHA256SUMS.pkgs" "${SOURCES}/bootstrap.cfg" "${dest}/"
|
||||
cp "${SOURCES}/helpers.sh" "${SOURCES}/SHA256SUMS.pkgs" "${SOURCES}/bootstrap.cfg" "${dest}/${PREFIX}/src"
|
||||
|
||||
cp -r "${PREFIX}/src/" "${dest}${PREFIX}/"
|
||||
cp -r "${sys_sources}/*" "${dest}/${PREFIX}/src"
|
||||
cp -f "${sys_sources}/init" "${dest}/"
|
||||
cp -r "${PREFIX}/src/repo" "${dest}/${PREFIX}/src"
|
||||
|
||||
shift
|
||||
shift 2
|
||||
# Copy additional binaries
|
||||
set -- "${@/#/${PREFIX}/bin/}"
|
||||
cp "$@" "${dest}${PREFIX}/bin/"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue