-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add copy-system, a simple script that copies whatever is system-y in the current sysroot and sets up a valid sysroot on the destination. Meant to be used as a quick way to install an Onyx system. Signed-off-by: Pedro Falcato <[email protected]>
- Loading branch information
Showing
3 changed files
with
44 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
group("core") { | ||
deps = [ | ||
"devmgr", | ||
"init", | ||
"toybox", | ||
"utils", | ||
"coredumpd", | ||
"bootstrap-init", | ||
"flamegraph", | ||
"trace" | ||
] | ||
deps = [ | ||
"bootstrap-init", | ||
"copy-system", | ||
"coredumpd", | ||
"devmgr", | ||
"flamegraph", | ||
"init", | ||
"toybox", | ||
"trace", | ||
"utils", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import("//build/package.gni") | ||
|
||
resource("copysys-script") { | ||
sources = [ "copy-system" ] | ||
outputs = [ "sbin/{{source_file_part}}" ] | ||
} | ||
|
||
package("copy-system") { | ||
deps = [ ":copysys-script" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
set -e | ||
dest=$1 | ||
if [ -z $dest ]; then | ||
echo "Please specify the destination." | ||
exit 1 | ||
fi | ||
|
||
cp -r /usr $dest | ||
cp -r /sbin $dest | ||
cp -r /boot $dest | ||
cp -r /etc $dest | ||
mkdir $dest/root | ||
mkdir $dest/home | ||
mkdir $dest/dev | ||
mkdir $dest/proc | ||
mkdir $dest/var | ||
mkdir $dest/mnt | ||
mkdir $dest/sys | ||
mkdir $dest/tmp | ||
ln -sf usr/lib $dest/lib | ||
ln -sf usr/bin $dest/bin | ||
mount -t devfs none $dest/dev |