Copy bootloader to filesystem

This commit is contained in:
Jeremy Soller 2017-09-27 20:30:19 -06:00
commit b6fccc37ba

View file

@ -1,4 +1,4 @@
build/filesystem.bin: filesystem.toml build/kernel
build/filesystem.bin: filesystem.toml build/bootloader build/kernel
-$(FUMOUNT) build/filesystem/ || true
rm -rf $@ $@.partial build/filesystem/
dd if=/dev/zero of=$@.partial bs=1048576 count=256
@ -8,7 +8,7 @@ build/filesystem.bin: filesystem.toml build/kernel
cargo run --manifest-path redoxfs/Cargo.toml --release --bin redoxfs -- $@.partial build/filesystem/
sleep 2
pgrep redoxfs
cp build/kernel build/filesystem/kernel
cp build/bootloader build/kernel build/filesystem/
cargo run --manifest-path installer/Cargo.toml -- $(INSTALLER_FLAGS) -c $< build/filesystem/
chown -R 0:0 build/filesystem
chown -R 1000:1000 build/filesystem/home/user