Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
52
sources/poky/meta/files/overlayfs-etc-preinit.sh.in
Normal file
52
sources/poky/meta/files/overlayfs-etc-preinit.sh.in
Normal file
@@ -0,0 +1,52 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "PREINIT: Start"
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
if {CREATE_MOUNT_DIRS}; then
|
||||
mount -o remount,rw /
|
||||
|
||||
mkdir -p /proc
|
||||
mkdir -p /sys
|
||||
mkdir -p /run
|
||||
mkdir -p /var/run
|
||||
mkdir -p {OVERLAYFS_ETC_MOUNT_POINT}
|
||||
fi
|
||||
|
||||
mount -t proc proc /proc
|
||||
mount -t sysfs sysfs /sys
|
||||
|
||||
[ -z "$CONSOLE" ] && CONSOLE="/dev/console"
|
||||
|
||||
BASE_OVERLAY_ETC_DIR={OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc
|
||||
UPPER_DIR=$BASE_OVERLAY_ETC_DIR/upper
|
||||
WORK_DIR=$BASE_OVERLAY_ETC_DIR/work
|
||||
LOWER_DIR=$BASE_OVERLAY_ETC_DIR/lower
|
||||
|
||||
if mount -n -t {OVERLAYFS_ETC_FSTYPE} \
|
||||
-o {OVERLAYFS_ETC_MOUNT_OPTIONS} \
|
||||
{OVERLAYFS_ETC_DEVICE} {OVERLAYFS_ETC_MOUNT_POINT}
|
||||
then
|
||||
mkdir -p $UPPER_DIR
|
||||
mkdir -p $WORK_DIR
|
||||
|
||||
if {OVERLAYFS_ETC_EXPOSE_LOWER}; then
|
||||
mkdir -p $LOWER_DIR
|
||||
|
||||
# provide read-only access to original /etc content
|
||||
mount -o bind,ro /etc $LOWER_DIR
|
||||
fi
|
||||
|
||||
mount -n -t overlay \
|
||||
-o upperdir=$UPPER_DIR \
|
||||
-o lowerdir=/etc \
|
||||
-o workdir=$WORK_DIR \
|
||||
-o index=off,xino=off,redirect_dir=off,metacopy=off \
|
||||
$UPPER_DIR /etc || \
|
||||
echo "PREINIT: Mounting etc-overlay failed!"
|
||||
else
|
||||
echo "PREINIT: Mounting </data> failed!"
|
||||
fi
|
||||
|
||||
echo "PREINIT: done; starting </sbin/init>"
|
||||
exec {SBIN_INIT_NAME}
|
||||
Reference in New Issue
Block a user