mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-12 06:15:29 +01:00
rootfs.py refactoring.
Switch to bzip2 packages Move most of the preprocessing done by rootfs.py into kaem and bash scripts inside live-bootstrap.
This commit is contained in:
parent
79c47f21ff
commit
5b032cb46c
47 changed files with 276 additions and 274 deletions
|
|
@ -1,11 +1,13 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
|
||||
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
set -e
|
||||
|
||||
# Begin sysb bootstrapping process
|
||||
mv ./run.sh /usr/src
|
||||
cd /usr/src
|
||||
./run.sh
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
set -e
|
||||
|
||||
# shellcheck source=sysglobal/helpers.sh
|
||||
# shellcheck source=sysa/helpers.sh
|
||||
. helpers.sh
|
||||
|
||||
# Unload the current kernel before things go weird
|
||||
|
|
@ -65,10 +65,11 @@ mount -t ext4 "/dev/${DISK}" /sysc
|
|||
# Copy over appropriate data
|
||||
echo "Copying data into sysc"
|
||||
cp -r /dev /sysc/
|
||||
mkdir -p /sysc/usr/src
|
||||
# Don't include /usr/src
|
||||
find /usr -mindepth 1 -maxdepth 1 -type d -not -name src -exec cp -r {} /sysc/{} \;
|
||||
# Except for bootstrap.cfg
|
||||
cp /usr/src/bootstrap.cfg /sysc/usr/src/bootstrap.cfg
|
||||
# Except for a few files
|
||||
cp /usr/src/helpers.sh /usr/src/SHA256SUMS.pkgs /usr/src/bootstrap.cfg /sysc/usr/src/
|
||||
cp -r /usr/src/repo /sysc/usr/src/repo
|
||||
sync
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue