Skip to content
Snippets Groups Projects
Verified Commit 54a9e178 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

init

parents
No related branches found
No related tags found
No related merge requests found
build
#!/usr/bin/env bash
set -ex
if [ ! -f "$1" ]
then
echo "$0 [program]" >&2
exit 1
fi
export TARGET=x86_64-unknown-redox
sudo rm -rf build/redoxer build/redoxer.bin
rm -f build/redoxer-qemu.bin
mkdir -p build/redoxer
if ! which redox_installer >/dev/null
then
cargo install --git https://gitlab.redox-os.org/redox-os/installer.git
fi
sudo "$(which redox_installer)" -c redoxer.toml build/redoxer
name="$(basename "$1")"
sudo cp "$1" "build/redoxer/bin/$name"
echo "stdio debug:" | sudo tee build/redoxer/etc/init.d/10_redoxer
echo "echo <redoxer>" | sudo tee -a build/redoxer/etc/init.d/10_redoxer
echo "$name" | sudo tee -a build/redoxer/etc/init.d/10_redoxer
echo "echo </redoxer>" | sudo tee -a build/redoxer/etc/init.d/10_redoxer
if ! which redoxfs >/dev/null
then
cargo install redoxfs
fi
sudo "$(which redoxfs-ar)" build/redoxer.bin build/redoxer build/redoxer/bootloader
cp build/redoxer.bin build/redoxer-qemu.bin
qemu-system-x86_64 \
-smp 4 \
-m 2048 \
-serial mon:stdio \
-machine q35 \
-device ich9-intel-hda -device hda-duplex \
-netdev user,id=net0 -device e1000,netdev=net0 \
-nographic -vga none \
-enable-kvm \
-cpu host \
-drive file=build/redoxer-qemu.bin,format=raw
# This is the default configuration file
# General settings
[general]
# Do not prompt if settings are not defined
prompt = false
# Package settings
[packages]
#acid = {}
#audiod = {}
#autoconf = {}
#automake = {}
#bash = {}
#binutils = {}
bootloader = {}
#ca-certificates = {}
#cairo = {}
#cairodemo = {}
#cargo = {}
#cleye = {}
#cmatrix = {}
#contain = {}
#coreutils = {}
#cpal = {}
#curl = {}
#dash = {}
#diffutils = {}
#dosbox = {}
#drivers = {}
#drivers-041 = {}
#duktape = {}
#eduke32 = {}
#exampled = {}
#expat = {}
#extrautils = {}
#fd = {}
#ffmpeg = {}
#findutils = {}
#freeciv = {}
#freedoom = {}
#freeglut = {}
#freetype = {}
#friar = {} # mio patch
#game-2048 = {}
#games = {}
#gawk = {}
#gcc = {}
#gears = {}
#generaluser-gs = {}
#gettext = {}
#gigalomania = {}
#git = {}
#glib = {}
#glium = {}
#glutin = {}
#gnu-binutils = {}
#gnu-grep = {}
#gnu-make = {}
#gstreamer = {}
#harfbuzz = {}
#hematite = {}
#init = {}
#installer = {}
#ion = {}
ipcd = {}
#jansson = {}
kernel = {}
#keyboard-sfx = {}
#lci = {}
#libc-bench = {}
#libffi = {}
#libiconv = {}
#libjpeg = {}
#liborbital = {}
#libpng = {}
#libsodium = {}
#llvm = {}
logd = {}
#lua = {}
#mdp = {}
#mesa = {}
#mesa_glu = {}
#miniserve = {}
#nasm = {}
#ncdu = {}
#ncurses = {}
#ncursesw = {}
#netdb = {}
#netstack = {}
#netsurf = {}
#netutils = {}
#newlib = {}
#newlibtest = {}
#nulld = {}
#openjazz = {}
#openssl = {}
#openttd = {}
#openttd-opengfx = {}
#openttd-openmsx = {}
#openttd-opensfx = {}
#orbdata = {}
#orbital = {}
#orbterm = {}
#orbutils = {}
#osdemo = {}
#pastel = {}
#patch = {}
#pcre = {}
#periodictable = {}
#perl = {}
#pixelcannon = {}
#pixman = {}
#pkgutils = {}
#powerline = {}
#prboom = {}
ptyd = {}
#python = {}
#qemu = {}
#randd = {}
#readline = {} # ncurses
#redoxfs = {}
#redox-ssh = {}
#relibc = {}
#ripgrep = {}
#rodioplay = {}
#rs-nes = {}
#rust = {}
#rust64 = {}
#rust-cairo = {}
#rust-cairo-demo = {}
#rustual-boy = {}
#schismtracker = {}
#scummvm = {}
#sdl = {}
#sdl2 = {}
#sdl_gfx = {}
#sdl_image = {}
#sdl_mixer = {}
#sdl_ttf = {}
#sdl-player = {}
#sed = {}
#servo = {}
#shellstorm = {}
#smith = {}
#sodium = {}
#sopwith = {}
#ssh = {}
#syobonaction = {}
#terminfo = {}
#termplay = {}
#timidity = {}
#ttf-hack = {}
#userutils = {}
#uutils = {}
#vim = {}
#vttest = {}
#webrender = {}
#winit = {}
#xz = {}
#zerod = {}
#zlib = {}
# User settings
[users.root]
password = "password"
uid = 0
gid = 0
name = "root"
home = "/root"
[users.user]
# Password is unset
password = ""
[[files]]
path = "/etc/init.d/00_base"
data = """
ipcd
logd
ptyd
"""
[[files]]
path = "/usr/bin"
data = "/bin"
symlink = true
[[files]]
path = "/usr/games"
data = "/games"
symlink = true
[[files]]
path = "/usr/include"
data = "/include"
symlink = true
[[files]]
path = "/usr/lib"
data = "/lib"
symlink = true
[[files]]
path = "/usr/share"
data = "/share"
symlink = true
[[files]]
path = "/tmp"
data = ""
directory= true
# 0o1777
mode = 1023
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment