shithub: riscv

Download patch

ref: e451804a75ac4931e981eec8ba8d7a7a503a0585
parent: b821edbcaba8400dfd968941812e698b5bab452a
author: cinap_lenrek <[email protected]>
date: Sun Mar 15 11:27:56 EDT 2015

boot: disable group/other permission checking in bootfs paqfs

when building bootfs in d770 mode directory, the other permissions
in bootfs paq are masked off which results in boot to fail. theres
no point in checking group/other permissions on boot, so just disable
permissin checking in paqfs with the -a flag.

--- a/sys/src/9/boot/boot.c
+++ b/sys/src/9/boot/boot.c
@@ -39,7 +39,7 @@
 
 	/* setup the boot namespace */
 	bind("/boot", "/bin", MAFTER);
-	run("/bin/paqfs", "-q", "-c", "8", "-m" "/root", "/boot/bootfs.paq", nil);
+	run("/bin/paqfs", "-qa", "-c", "8", "-m" "/root", "/boot/bootfs.paq", nil);
 	bind("/root", "/", MAFTER);
 	snprint(buf, sizeof(buf), "/%s/bin", cputype);
 	bind(buf, "/bin", MAFTER);