Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142589362
D52449.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
639 B
Referenced Files
None
Subscribers
None
D52449.diff
View Options
diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -39,8 +39,21 @@
}
metalog_add_data() {
+ local file mode type
+
if [ -n "${NO_ROOT}" ]; then
- echo "$1 type=file uname=root gname=wheel mode=0644" >> \
+ file=$1
+ if [ -f ${DESTDIR}/${file} ]; then
+ type=file
+ mode=${2:-0644}
+ elif [ -d ${DESTDIR}/${file} ]; then
+ type=dir
+ mode=${2:-0755}
+ else
+ echo "metalog_add_data: ${file} not found" >&2
+ return 1
+ fi
+ echo "${file} type=${type} uname=root gname=wheel mode=${mode}" >> \
${DESTDIR}/METALOG
fi
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 22, 7:47 AM (17 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27835435
Default Alt Text
D52449.diff (639 B)
Attached To
Mode
D52449: release: Made it possible to specify more attributes in metalog entries
Attached
Detach File
Event Timeline
Log In to Comment