1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-20 02:38:43 +00:00

ISO 9660 specification allows only "d-characters" and "a-characters" in the

Volume Descriptor (section 7.4).  In short, upper-case alphanumeric + some
symbols only.  While the makefs utility automatically converts the characters,
$LABEL should be consistent in the scripts.
This commit is contained in:
Hiroki Sato 2013-01-08 21:13:58 +00:00
parent 6317f31612
commit 0e4b6f5ed7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245177
6 changed files with 10 additions and 10 deletions

View File

@ -36,9 +36,9 @@ if [ $# -lt 3 ]; then
exit 1 exit 1
fi fi
LABEL=$1; shift LABEL=`echo $1 | tr '[:lower:]' '[:upper:]'`; shift
NAME=$1; shift NAME=$1; shift
echo "/dev/iso9660/`echo $LABEL | tr '[:lower:]' '[:upper:]'` / cd9660 ro 0 0" > $1/etc/fstab echo "/dev/iso9660/$LABEL / cd9660 ro 0 0" > $1/etc/fstab
makefs -t cd9660 $bootable -o rockridge -o label=$LABEL $NAME $* makefs -t cd9660 $bootable -o rockridge -o label=$LABEL $NAME $*
rm $1/etc/fstab rm $1/etc/fstab

View File

@ -36,9 +36,9 @@ if [ $# -lt 3 ]; then
exit 1 exit 1
fi fi
LABEL=$1; shift LABEL=`echo $1 | tr '[:lower:]' '[:upper:]'`; shift
NAME=$1; shift NAME=$1; shift
echo "/dev/iso9660/`echo $LABEL | tr '[:lower:]' '[:upper:]'` / cd9660 ro 0 0" > $1/etc/fstab echo "/dev/iso9660/$LABEL / cd9660 ro 0 0" > $1/etc/fstab
makefs -t cd9660 $bootable -o rockridge -o label=$LABEL $NAME $* makefs -t cd9660 $bootable -o rockridge -o label=$LABEL $NAME $*
rm $1/etc/fstab rm $1/etc/fstab

View File

@ -37,7 +37,7 @@ if [ $# -lt 3 ]; then
exit 1 exit 1
fi fi
LABEL=$1; shift LABEL=`echo $1 | tr '[:lower:]' '[:upper:]'`; shift
NAME=$1; shift NAME=$1; shift
BASE=$1; shift BASE=$1; shift

View File

@ -36,9 +36,9 @@ if [ $# -lt 3 ]; then
exit 1 exit 1
fi fi
LABEL=$1; shift LABEL=`echo $1 | tr '[:lower:]' '[:upper:]'`; shift
NAME=$1; shift NAME=$1; shift
echo "/dev/iso9660/`echo $LABEL | tr '[:lower:]' '[:upper:]'` / cd9660 ro 0 0" > $1/etc/fstab echo "/dev/iso9660/$LABEL / cd9660 ro 0 0" > $1/etc/fstab
makefs -t cd9660 $bootable -o rockridge -o label=$LABEL $NAME $* makefs -t cd9660 $bootable -o rockridge -o label=$LABEL $NAME $*
rm $1/etc/fstab rm $1/etc/fstab

View File

@ -58,10 +58,10 @@ if [ $# -lt 3 ]; then
exit 1 exit 1
fi fi
LABEL=$1; shift LABEL=`echo $1 | tr '[:lower:]' '[:upper:]'`; shift
NAME=$1; shift NAME=$1; shift
echo "/dev/iso9660/`echo $LABEL | tr '[:lower:]' '[:upper:]'` / cd9660 ro 0 0" > $1/etc/fstab echo "/dev/iso9660/$LABEL / cd9660 ro 0 0" > $1/etc/fstab
makefs -t cd9660 $bootable -o rockridge -o label=$LABEL $NAME $* makefs -t cd9660 $bootable -o rockridge -o label=$LABEL $NAME $*
rm $1/etc/fstab rm $1/etc/fstab
rm /tmp/hfs-boot-block rm /tmp/hfs-boot-block

View File

@ -63,7 +63,7 @@ if [ $? -ne 0 ]; then
fi fi
fi fi
LABEL=$1; shift LABEL=`echo $1 | tr '[:lower:]' '[:upper:]'`; shift
NAME=$1; shift NAME=$1; shift
echo "/dev/iso9660/$LABEL / cd9660 ro 0 0" > $1/etc/fstab echo "/dev/iso9660/$LABEL / cd9660 ro 0 0" > $1/etc/fstab