Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142574707
D42765.id131052.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
800 B
Referenced Files
None
Subscribers
None
D42765.id131052.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,18 @@
if [ -f $j ]; then
create_md $subdir
echo "Loading /$subdir from cpio archive $j"
- (cd / ; /rescue/tar -xpf $j)
+ if [ -x /rescue/tar ]; then
+ echo "/rescue/tar in use"
+ (cd / ; /rescue/tar -xpf $j)
+ else
+ if [ -x /usr/bin/tar ]; then
+ echo "/usr/bin/tar in use"
+ (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
Thu, Jan 22, 4:30 AM (16 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27829422
Default Alt Text
D42765.id131052.diff (800 B)
Attached To
Mode
D42765: libexec/rc/rc.initdiskless: make tar's path flexible
Attached
Detach File
Event Timeline
Log In to Comment