projects
/
oweals
/
ubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ea854
)
mount_root: try both $prefix/sbin/block and /sbin/block, fixes extroot with builtin...
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 3 Dec 2013 18:14:48 +0000
(18:14 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 8 Feb 2014 18:11:22 +0000
(18:11 +0000)
mount_root.c
patch
|
blob
|
history
diff --git
a/mount_root.c
b/mount_root.c
index 8868e40c68203612f18e0a8e4da27f41d3ff8713..cfa48c399e852bc10eafde77f078ebcd86407acd 100644
(file)
--- a/
mount_root.c
+++ b/
mount_root.c
@@
-697,7
+697,12
@@
static int extroot(const char *prefix)
sprintf(block_path, "%s/sbin/block", prefix);
if (stat(block_path, &s))
- return -1;
+ {
+ sprintf(block_path, "/sbin/block");
+
+ if (stat(block_path, &s))
+ return -1;
+ }
sprintf(kmod_loader, "/sbin/kmodloader %s/etc/modules-boot.d/ %s", prefix, prefix);
system(kmod_loader);