summaryrefslogtreecommitdiff
path: root/distrib/octeon
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2021-11-13 18:19:00 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2021-11-13 18:19:00 +0000
commita134c7f7dc19dd759083fd0730081351373a57fe (patch)
tree96dbb975651c032ea9a4be8d2997c5bc5d3568be /distrib/octeon
parent74774647810120f8f43db5b8cc07ce0d3dc93e75 (diff)
Use long filenames by default on FAT filesystems
These days, 8.3 filenames are often a problem, filesystems containing firmware with long names must not truncate them -- it's also a sane default as portable file system between OSes, anyway. Altough undocumented in mount_msdos(8), the default for FAT32 already is to use long filenames: ever since its import from NetBSD in 1998. Previously, mount_msdos would ignore long filenames and default to short filenames unless a flag was used or long ones were found on the filesystem prior to mounting it. Just always mount with support for long filenames (unless `-s' is used). As various install media use FAT filesystems, adjust the remaining ones to also pass explicit mount option reflecting the previous default. OK deraadt
Diffstat (limited to 'distrib/octeon')
-rw-r--r--distrib/octeon/ramdisk/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/distrib/octeon/ramdisk/Makefile b/distrib/octeon/ramdisk/Makefile
index 16c0e22535c..7a7b74de8b1 100644
--- a/distrib/octeon/ramdisk/Makefile
+++ b/distrib/octeon/ramdisk/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.19 2021/10/23 16:16:22 krw Exp $
+# $OpenBSD: Makefile,v 1.20 2021/11/13 18:18:59 kn Exp $
FS= miniroot${OSrev}.img
FSSIZE= 24576
@@ -7,6 +7,8 @@ MOUNT_POINT= /mnt
MTREE= ${UTILS}/mtree.conf
RAMDISK= RAMDISK
+MOUNT_ARGS_msdos=-o-s
+
LISTS= ${.CURDIR}/list
UTILS= ${.CURDIR}/../../miniroot
@@ -21,7 +23,7 @@ ${FS}: bsd.rd
echo 'u\ne 0\nC\nn\n64\n*\nf 0\nw\nq\n' | fdisk -e `cat vnd`
echo 'w\ny\nq\n' | disklabel -E `cat vnd` > /dev/null
newfs -t msdos /dev/r`cat vnd`i
- mount /dev/`cat vnd`i ${MOUNT_POINT}
+ mount ${MOUNT_ARGS_msdos} /dev/`cat vnd`i ${MOUNT_POINT}
cp bsd.rd ${MOUNT_POINT}/bsd.rd
df -i ${MOUNT_POINT}
umount ${MOUNT_POINT}