updated rootfs_overlay for orangepi_pc
This commit is contained in:
+12
-9
@@ -30,7 +30,7 @@
|
||||
#----------- Building rootfs ----------------------
|
||||
rootfs() {
|
||||
printf "$UGREEN** Building rootfs\n$RESET"
|
||||
rm -rv $rootfspath # &>> $fulllogfile
|
||||
# rm -rv $rootfspath # &>> $fulllogfile
|
||||
mkdir -pv $rootfspath # &>> $fulllogfile
|
||||
cd $rootfspath
|
||||
mkdir -pv $(cat $rootfsfile) # &>> $fulllogfile
|
||||
@@ -46,9 +46,9 @@ rootfs() {
|
||||
[ "$ARCH" = "arm64" ] && ln -sv lib lib64
|
||||
ln -sv bin libexec
|
||||
cd ..
|
||||
tar -xvf $root/downloads/20250110-1.tar.gz
|
||||
cp -rv initscripts/* .
|
||||
rm -rv initscripts
|
||||
# tar -xvf $root/downloads/20250110-1.tar.gz
|
||||
# cp -rv initscripts/* .
|
||||
# rm -rv initscripts
|
||||
ln -sv /proc/mounts etc/mtab # &>> $fulllogfile
|
||||
|
||||
cat <<EOF > $rootfspath/etc/os-release
|
||||
@@ -62,15 +62,15 @@ EOF
|
||||
cp -v $build/busybox/busybox-${BUSYBOX_VERSION}/busybox $rootfspath/usr/bin # &>> $fulllogfile
|
||||
cd $rootfspath/usr/bin
|
||||
for i in $(cat $BUSYBOX_LIST_FILE); do ln -sv busybox $i; done
|
||||
cp -v $root/rootfs/init.in $rootfspath/init
|
||||
# cp -v $root/rootfs/init.in $rootfspath/init
|
||||
kernel_headers
|
||||
uclibc
|
||||
kernel
|
||||
kernel_modules
|
||||
if [ "$FINIT_INIT_ENABLE" = "y" ]; then
|
||||
finit_init
|
||||
cp -rv $root/rootfs/overlay/* $rootfspath
|
||||
rm $rootfspath/init
|
||||
# cp -rv $root/rootfs/overlay/* $rootfspath
|
||||
# rm $rootfspath/init
|
||||
ln -sv usr/bin/finit $rootfspath/init
|
||||
fi
|
||||
[ "$ZLIB_ENABLE" = "y" ] && zlib
|
||||
@@ -99,13 +99,16 @@ EOF
|
||||
127.0.0.1 localhost
|
||||
::1 localhost
|
||||
127.0.1.1 $DEFAULT_HOSTNAME.localdomain $DEFAULT_HOSTNAME
|
||||
EOF
|
||||
cat << EOF > $rootfspath/etc/issue
|
||||
$DEFAULT_HOSTNAME $KERNEL_VERSION (\l)
|
||||
EOF
|
||||
fi
|
||||
|
||||
[ ! -z "$ROOTFS_OVERLAY" ] && cp -rv $ROOTFS_OVERLAY/* $rootfspath
|
||||
|
||||
chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab
|
||||
chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init
|
||||
chmod 640 $rootfspath/etc/shadow #$rootfspath/etc/inittab
|
||||
chmod 755 $rootfspath/usr/share/udhcpc/default.script
|
||||
chmod 644 $rootfspath/etc/{passwd,group,hostname,hosts,fstab,shells,issue} $rootfspath/etc/network/interfaces
|
||||
|
||||
check $? "Build rootfs"
|
||||
|
||||
Reference in New Issue
Block a user