Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149936521
D42765.id131053.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
709 B
Referenced Files
None
Subscribers
None
D42765.id131053.diff
View Options
diff --git a/libexec/rc/rc.initdiskless b/libexec/rc/rc.initdiskless
--- a/libexec/rc/rc.initdiskless
+++ b/libexec/rc/rc.initdiskless
@@ -376,7 +376,16 @@
if [ -f $j ]; then
create_md $subdir
echo "Loading /$subdir from cpio archive $j"
- (cd / ; /rescue/tar -xpf $j)
+ if [ -x /rescue/tar ]; then
+ (cd / ; /rescue/tar -xpf $j)
+ else
+ if [ -x /usr/bin/tar ]; then
+ (cd / ; /usr/bin/tar -xpf $j)
+ else
+ echo "Can't find /rescue/tar or /usr/bin/tar, bailing out"
+ exit 1
+ fi
+ fi
fi
done
for j in /conf/$i/*/extract ; do
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 29, 5:49 AM (18 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30512978
Default Alt Text
D42765.id131053.diff (709 B)
Attached To
Mode
D42765: libexec/rc/rc.initdiskless: make tar's path flexible
Attached
Detach File
Event Timeline
Log In to Comment