Small edits

This commit is contained in:
Cameron Thompson
2025-07-20 00:01:08 -04:00
parent 6936b9e5c8
commit b6ff2a3832
2 changed files with 5 additions and 7 deletions

View File

@@ -1 +0,0 @@
2.0

View File

@@ -1,7 +1,6 @@
#!/bin/sh
newroot() {
/bin/echo "Begin mount fix process to make a usable userspace"
@@ -19,18 +18,18 @@ newroot() {
# Ensure necessary directories exist for overlay and pivot_root
/bin/echo "Creating new overlay system"
if [ ! -d /data/rootfs ]; then
mkdir -p /data/rootfs
if [ ! -d /usrdata/rootfs ]; then
mkdir -p /usrdata/rootfs
fi
if [ ! -d /data/rootfs-workdir ]; then
mkdir -p /data/rootfs-workdir
if [ ! -d /usrdata/rootfs-workdir ]; then
mkdir -p /usrdata/rootfs-workdir
fi
if [ ! -d /rootfs ]; then
mkdir -p /rootfs
fi
# Mount the new overlay filesystem
/bin/mount -t overlay overlay -o lowerdir=/,upperdir=/data/rootfs,workdir=/data/rootfs-workdir /rootfs
/bin/mount -t overlay overlay -o lowerdir=/,upperdir=/usrdata/rootfs,workdir=/usrdata/rootfs-workdir /rootfs
# Create the real_rootfs directory in the new root
if [ ! -d /rootfs/real_rootfs ]; then