diff options
author | Simon Rettberg | 2022-12-12 16:18:42 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-12-12 16:18:42 +0100 |
commit | b8182c10272f94a9af27a896435f48909ef38dea (patch) | |
tree | faa420f8cfe09adb02e4ae0f0256b021f8b50f22 /core/modules/run-virt/data | |
parent | Make buildable on debian 12 (diff) | |
download | mltk-b8182c10272f94a9af27a896435f48909ef38dea.tar.gz mltk-b8182c10272f94a9af27a896435f48909ef38dea.tar.xz mltk-b8182c10272f94a9af27a896435f48909ef38dea.zip |
[run-virt] mkfs.vfat makes FAT32, which we don't want for a floppy
Diffstat (limited to 'core/modules/run-virt/data')
-rw-r--r-- | core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc index a07298cb..52817f2f 100644 --- a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc +++ b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc @@ -9,7 +9,7 @@ setup_virtual_floppy() { # create floppy disk file + filesystem dd "if=/dev/zero" "of=${SLX_FLOPPY_IMG}" count=1440 bs=1024 chmod 0600 "${SLX_FLOPPY_IMG}" - mkfs.fat "${SLX_FLOPPY_IMG}" || mkfs.vfat "${SLX_FLOPPY_IMG}" || mkdosfs "${SLX_FLOPPY_IMG}" + mkfs.fat "${SLX_FLOPPY_IMG}" || mkdosfs "${SLX_FLOPPY_IMG}" if [ -s "${TMPHOME}/.openslx/shares" ]; then $(safesource "${TMPHOME}/.openslx/shares") @@ -184,9 +184,9 @@ setup_virtual_floppy() { ## MAIN ## # Sanity checks # # Check if we have any filesystem tool -if ! check_dep --oneof mkfs.fat mkfs.vfat mkdosfs; then +if ! check_dep --oneof mkfs.fat mkdosfs; then # no tools found in minilinux, this means no floppy/openslx.exe will be supported - slxlog "virt-fstool-missing" "Could not find any of 'mkfs.fat', 'mkfs.vfat', 'mkdosfs'!" + slxlog "virt-fstool-missing" "Could not find any of 'mkfs.fat', 'mkdosfs'!" writelog "Could not find any filesystem-related tools to create the floppy's filesystem with!" error_user "Konnte kein virtuelles Floppy anlegen! Setzen der Auflösung oder Einhängen von Netzwerkfreigaben werden nicht funktionieren. Bitte kontaktieren Sie den Support." # still continue as this is not really critical |