Set label when setting up USB LUNs, it looks nicer this way.

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Edward Tomasz Napierala 2018-05-16 20:44:08 +00:00
parent 463b6ed54f
commit 57b1f8183c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333685

View File

@ -55,7 +55,8 @@ cfumass_start()
_files=`find "${cfumass_dir}" -newer "${cfumass_image}" -print 2> /dev/null`
if [ ! -e "${cfumass_image}" -o -n "${_files}" ]; then
# The image doesn't exist or is out of date.
makefs -t cd9660 -o rockridge "${cfumass_image}" "${cfumass_dir}"
makefs -t cd9660 -o label="${cfumass_vendor}" \
-o rockridge "${cfumass_image}" "${cfumass_dir}"
err=$?
if [ "${err}" -ne 0 ]; then
warn "unable to create ${cfumass_image}"