2017-09-28 04:30:19 +02:00
|
|
|
build/filesystem.bin: filesystem.toml build/bootloader build/kernel
|
2017-01-05 22:07:20 +01:00
|
|
|
-$(FUMOUNT) build/filesystem/ || true
|
2017-05-13 04:37:59 +02:00
|
|
|
rm -rf $@ $@.partial build/filesystem/
|
2017-09-20 04:36:44 +02:00
|
|
|
dd if=/dev/zero of=$@.partial bs=1048576 count=256
|
2017-09-14 00:35:24 +02:00
|
|
|
cargo run --manifest-path redoxfs/Cargo.toml --release --bin redoxfs-mkfs $@.partial
|
2017-01-05 22:07:20 +01:00
|
|
|
mkdir -p build/filesystem/
|
2017-09-14 00:35:24 +02:00
|
|
|
cargo build --manifest-path redoxfs/Cargo.toml --release --bin redoxfs
|
|
|
|
cargo run --manifest-path redoxfs/Cargo.toml --release --bin redoxfs -- $@.partial build/filesystem/
|
2017-01-05 22:07:20 +01:00
|
|
|
sleep 2
|
|
|
|
pgrep redoxfs
|
2017-09-28 04:30:19 +02:00
|
|
|
cp build/bootloader build/kernel build/filesystem/
|
2017-09-27 04:53:08 +02:00
|
|
|
cargo run --manifest-path installer/Cargo.toml -- $(INSTALLER_FLAGS) -c $< build/filesystem/
|
2017-01-05 22:07:20 +01:00
|
|
|
chown -R 0:0 build/filesystem
|
|
|
|
chown -R 1000:1000 build/filesystem/home/user
|
|
|
|
chmod -R uog+rX build/filesystem
|
|
|
|
chmod -R u+w build/filesystem
|
|
|
|
chmod -R og-w build/filesystem
|
|
|
|
chmod -R 755 build/filesystem/bin
|
|
|
|
chmod -R u+rwX build/filesystem/root
|
|
|
|
chmod -R og-rwx build/filesystem/root
|
|
|
|
chmod -R u+rwX build/filesystem/home/user
|
|
|
|
chmod -R og-rwx build/filesystem/home/user
|
|
|
|
chmod +s build/filesystem/bin/passwd
|
|
|
|
chmod +s build/filesystem/bin/su
|
|
|
|
chmod +s build/filesystem/bin/sudo
|
|
|
|
mkdir build/filesystem/tmp
|
|
|
|
chmod 1777 build/filesystem/tmp
|
|
|
|
sync
|
|
|
|
-$(FUMOUNT) build/filesystem/ || true
|
|
|
|
rm -rf build/filesystem/
|
2017-05-13 04:37:59 +02:00
|
|
|
mv $@.partial $@
|
2017-01-05 22:07:20 +01:00
|
|
|
|
|
|
|
mount: FORCE
|
|
|
|
mkdir -p build/filesystem/
|
2017-09-14 00:35:24 +02:00
|
|
|
cargo build --manifest-path redoxfs/Cargo.toml --release --bin redoxfs
|
|
|
|
cargo run --manifest-path redoxfs/Cargo.toml --release --bin redoxfs -- build/harddrive.bin build/filesystem/
|
2017-01-05 22:07:20 +01:00
|
|
|
sleep 2
|
|
|
|
pgrep redoxfs
|
|
|
|
|
|
|
|
unmount: FORCE
|
|
|
|
sync
|
|
|
|
-$(FUMOUNT) build/filesystem/ || true
|
|
|
|
rm -rf build/filesystem/
|