mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
SystemServer+Meta: Use the new SysFS
We make SystemServer to mount the new SysFS in /sys.
This commit is contained in:
parent
92c0dab5ab
commit
3d89938c4a
2 changed files with 9 additions and 0 deletions
|
@ -115,6 +115,10 @@ printf "setting up device nodes folder... "
|
||||||
mkdir -p mnt/dev
|
mkdir -p mnt/dev
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
||||||
|
printf "setting up sysfs folder... "
|
||||||
|
mkdir -p mnt/sys
|
||||||
|
echo "done"
|
||||||
|
|
||||||
printf "writing version file... "
|
printf "writing version file... "
|
||||||
GIT_HASH=$( (git log --pretty=format:'%h' -n 1 | cut -c1-7) || true )
|
GIT_HASH=$( (git log --pretty=format:'%h' -n 1 | cut -c1-7) || true )
|
||||||
printf "[Version]\nMajor=1\nMinor=0\nGit=%s\n" "$GIT_HASH" > mnt/res/version.ini
|
printf "[Version]\nMajor=1\nMinor=0\nGit=%s\n" "$GIT_HASH" > mnt/res/version.ini
|
||||||
|
|
|
@ -91,6 +91,11 @@ static void prepare_devfs()
|
||||||
VERIFY_NOT_REACHED();
|
VERIFY_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rc = mount(-1, "/sys", "sys", 0);
|
||||||
|
if (rc != 0) {
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
|
}
|
||||||
|
|
||||||
rc = mkdir("/dev/pts", 0755);
|
rc = mkdir("/dev/pts", 0755);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
VERIFY_NOT_REACHED();
|
VERIFY_NOT_REACHED();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue