mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 02:56:31 +01:00
Various fixes + cleanup.
- Add parts.rst documentation for Linux kernel. - Completely fix problems caused by new bootstrap, update checksums for /usr. - Globalise populate_device_nodes. - Enable deblobbing.
This commit is contained in:
parent
d429c48d76
commit
04180f5672
48 changed files with 438 additions and 342 deletions
15
sysa/run.sh
15
sysa/run.sh
|
|
@ -7,8 +7,9 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
set -e
|
||||
# shellcheck source=sysa/helpers.sh
|
||||
# shellcheck source=sysglobal/helpers.sh
|
||||
. helpers.sh
|
||||
# shellcheck source=/dev/null
|
||||
. bootstrap.cfg
|
||||
|
||||
export PREFIX=/usr
|
||||
|
|
@ -16,18 +17,6 @@ export SOURCES=/after
|
|||
mkdir -p "${PREFIX}/sbin"
|
||||
export PATH="${PREFIX}/bin:${PREFIX}/sbin"
|
||||
|
||||
populate_device_nodes() {
|
||||
# http://www.linuxfromscratch.org/lfs/view/6.1/chapter06/devices.html
|
||||
mkdir -p "${1}/dev"
|
||||
test -c "${1}/dev/null" || mknod -m 666 "${1}/dev/null" c 1 3
|
||||
test -c "${1}/dev/zero" || mknod -m 666 "${1}/dev/zero" c 1 5
|
||||
test -c "${1}/dev/ptmx" || mknod -m 666 "${1}/dev/ptmx" c 5 2
|
||||
test -c "${1}/dev/tty" || mknod -m 666 "${1}/dev/tty" c 5 0
|
||||
test -c "${1}/dev/random" || mknod -m 444 "${1}/dev/random" c 1 8
|
||||
test -c "${1}/dev/urandom" || mknod -m 444 "${1}/dev/urandom" c 1 9
|
||||
test -c "${1}/dev/console" || mknod -m 666 "${1}/dev/console" c 5 1
|
||||
}
|
||||
|
||||
create_sysb() {
|
||||
# Copy everything in
|
||||
echo "Creating sysb rootfs"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue