Module Name: src Committed By: thorpej Date: Sat Jan 6 07:38:13 UTC 2024
Modified Files: src/usr.sbin/sysinst: Makefile Added Files: src/usr.sbin/sysinst/arch/virt68k: Makefile md.c md.h menus.md.en menus.md.es menus.md.fr menus.md.pl msg.md.de msg.md.en msg.md.es msg.md.fr msg.md.pl Log Message: First crack at virt68k sysinst support, more-or-less cloned from mvme68k with the names changed to protect the guilty and boot block installation removed. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/Makefile cvs rdiff -u -r0 -r1.1 src/usr.sbin/sysinst/arch/virt68k/Makefile \ src/usr.sbin/sysinst/arch/virt68k/md.c \ src/usr.sbin/sysinst/arch/virt68k/md.h \ src/usr.sbin/sysinst/arch/virt68k/menus.md.en \ src/usr.sbin/sysinst/arch/virt68k/menus.md.es \ src/usr.sbin/sysinst/arch/virt68k/menus.md.fr \ src/usr.sbin/sysinst/arch/virt68k/menus.md.pl \ src/usr.sbin/sysinst/arch/virt68k/msg.md.de \ src/usr.sbin/sysinst/arch/virt68k/msg.md.en \ src/usr.sbin/sysinst/arch/virt68k/msg.md.es \ src/usr.sbin/sysinst/arch/virt68k/msg.md.fr \ src/usr.sbin/sysinst/arch/virt68k/msg.md.pl Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/sysinst/Makefile diff -u src/usr.sbin/sysinst/Makefile:1.3 src/usr.sbin/sysinst/Makefile:1.4 --- src/usr.sbin/sysinst/Makefile:1.3 Wed Jan 24 09:04:46 2018 +++ src/usr.sbin/sysinst/Makefile Sat Jan 6 07:38:13 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2018/01/24 09:04:46 skrll Exp $ +# $NetBSD: Makefile,v 1.4 2024/01/06 07:38:13 thorpej Exp $ # # sysinst is usually built when the crunched install binary is built, # but can be built here as a normal program for testing. @@ -49,6 +49,7 @@ SUBDIR += arch/shark SUBDIR += arch/sparc SUBDIR += arch/sparc64 SUBDIR += arch/vax +SUBDIR += arch/virt68k SUBDIR += arch/x68k SUBDIR += arch/zaurus Added files: Index: src/usr.sbin/sysinst/arch/virt68k/Makefile diff -u /dev/null src/usr.sbin/sysinst/arch/virt68k/Makefile:1.1 --- /dev/null Sat Jan 6 07:38:14 2024 +++ src/usr.sbin/sysinst/arch/virt68k/Makefile Sat Jan 6 07:38:13 2024 @@ -0,0 +1,6 @@ +# $NetBSD: Makefile,v 1.1 2024/01/06 07:38:13 thorpej Exp $ +# +# Makefile for virt68k +# + +.include "../../Makefile.inc" Index: src/usr.sbin/sysinst/arch/virt68k/md.c diff -u /dev/null src/usr.sbin/sysinst/arch/virt68k/md.c:1.1 --- /dev/null Sat Jan 6 07:38:14 2024 +++ src/usr.sbin/sysinst/arch/virt68k/md.c Sat Jan 6 07:38:13 2024 @@ -0,0 +1,240 @@ +/* $NetBSD: md.c,v 1.1 2024/01/06 07:38:13 thorpej Exp $ */ + +/* + * Copyright 1997 Piermont Information Systems Inc. + * All rights reserved. + * + * Based on code written by Philip A. Nelson for Piermont Information + * Systems Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of Piermont Information Systems Inc. may not be used to endorse + * or promote products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* md.c -- virt68k machine specific routines */ +/* This file is in close sync with hp300, pmax, sparc, vax and x68k md.c */ + +#include <stdio.h> +#include <unistd.h> +#include <sys/ioctl.h> +#include <sys/param.h> +#include <util.h> + +#include "defs.h" +#include "md.h" +#include "msg_defs.h" +#include "menu_defs.h" + +void +md_init(void) +{ +} + +void +md_init_set_status(int flags) +{ + (void)flags; +} + +bool +md_get_info(struct install_partition_desc *install) +{ + char buf[1024]; + int fd; + char dev_name[100]; + struct disklabel disklabel; + + snprintf(dev_name, 100, "/dev/r%sc", pm->diskdev); + + fd = open(dev_name, O_RDONLY, 0); + if (fd < 0) { + if (logfp) + (void)fprintf(logfp, "Can't open %s\n", dev_name); + endwin(); + fprintf(stderr, "Can't open %s\n", dev_name); + exit(1); + } + if (ioctl(fd, DIOCGDINFO, &disklabel) == -1) { + if (logfp) + (void)fprintf(logfp, "Can't read disklabel on %s.\n", + dev_name); + endwin(); + fprintf(stderr, "Can't read disklabel on %s.\n", dev_name); + close(fd); + exit(1); + } + if (disklabel.d_secsize != 512) { + endwin(); + fprintf(stderr, "Non-512byte/sector disk is not supported.\n"); + close(fd); + exit(1); + } + + pm->dlcyl = disklabel.d_ncylinders; + pm->dlhead = disklabel.d_ntracks; + pm->dlsec = disklabel.d_nsectors; + pm->sectorsize = disklabel.d_secsize; + pm->dlcylsize = disklabel.d_secpercyl; + pm->dlsize = pm->dlcyl*pm->dlhead*pm->dlsec; + + if (read(fd, buf, 1024) < 0) { + endwin(); + fprintf(stderr, "Can't read %s\n", dev_name); + close(fd); + exit(1); + } + + /* preserve first cylinder for system. */ + pm->ptstart = disklabel.d_secpercyl; + + close(fd); + + return true; +} + +/* + * md back-end code for menu-driven BSD disklabel editor. + */ +int +md_make_bsd_partitions(struct install_partition_desc *install) +{ + + return make_bsd_partitions(install); +} + +/* + * any additional partition validation + */ +bool +md_check_partitions(struct install_partition_desc *install) +{ + /* virt68k partitions must be in order of the range. */ + daddr_t last_end = 0; + size_t i; + char desc[STRSIZE]; + + for (i = 0; i < install->num; i++) { + if (i > 0) { + /* skip raw part and similar */ + if (install->infos[i].cur_flags & + (PTI_SEC_CONTAINER|PTI_PSCHEME_INTERNAL| + PTI_RAW_PART)) + continue; + + if (install->infos[i].cur_start < last_end) { + snprintf(desc, sizeof desc, + "%zu (%s)", i, + install->infos[i].mount); + msg_fmt_display(MSG_ordering, "%s", desc); + if (!ask_yesno(NULL)) + return false; + } + } + last_end = install->infos[i].cur_start + install->infos[i].size; + } + + return true; +} + +/* + * hook called before writing new disklabel. + */ +bool +md_pre_disklabel(struct install_partition_desc *install, + struct disk_partitions *parts) +{ + return true; +} + +/* + * hook called after writing disklabel to new target disk. + */ +bool +md_post_disklabel(struct install_partition_desc *install, + struct disk_partitions *parts) +{ + return true; +} + +/* + * hook called after upgrade() or install() has finished setting + * up the target disk but immediately before the user is given the + * ``disks are now set up'' message.. + */ +int +md_post_newfs(struct install_partition_desc *install) +{ + return 0; +} + +int +md_post_extract(struct install_partition_desc *install, bool upgrade) +{ + return 0; +} + +void +md_cleanup_install(struct install_partition_desc *install) +{ +#ifndef DEBUG + enable_rc_conf(); +#endif +} + +int +md_pre_update(struct install_partition_desc *install) +{ + return 1; +} + +/* Upgrade support */ +int +md_update(struct install_partition_desc *install) +{ + md_post_newfs(install); + return 1; +} + +int +md_pre_mount(struct install_partition_desc *install, size_t ndx) +{ + return 0; +} + +bool +md_parts_use_wholedisk(struct disk_partitions *parts) +{ + return parts_use_wholedisk(parts, 0, NULL); +} + +#ifdef HAVE_GPT +bool +md_gpt_post_write(struct disk_partitions *parts, part_id root_id, + bool root_is_new, part_id efi_id, bool efi_is_new) +{ + /* no GPT boot support, nothing needs to be done here */ + return true; +} +#endif + Index: src/usr.sbin/sysinst/arch/virt68k/md.h diff -u /dev/null src/usr.sbin/sysinst/arch/virt68k/md.h:1.1 --- /dev/null Sat Jan 6 07:38:14 2024 +++ src/usr.sbin/sysinst/arch/virt68k/md.h Sat Jan 6 07:38:13 2024 @@ -0,0 +1,83 @@ +/* $NetBSD: md.h,v 1.1 2024/01/06 07:38:13 thorpej Exp $ */ + +/* + * Copyright 1997 Piermont Information Systems Inc. + * All rights reserved. + * + * Based on code written by Philip A. Nelson for Piermont Information + * Systems Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of Piermont Information Systems Inc. may not be used to endorse + * or promote products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +/* md.h -- Machine specific definitions for the virt68k */ + + +#include <machine/cpu.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <unistd.h> + + +/* constants and defines */ + +/* + * Symbolic names for disk partitions. + */ +#define PART_ROOT PART_A +#define PART_SWAP PART_B +#define PART_RAW PART_C +#define PART_USR PART_D /* Can be after PART_FIRST_FREE */ +#define PART_FIRST_FREE PART_E + +#define DEFROOTSIZE 40 /* Default root size */ +#define DEFSWAPSIZE 32 /* Default swap size */ +#define DEFVARSIZE 32 /* Default /var size, if created */ +#define DEFUSRSIZE 700 /* Default /usr size, if /home */ +#define XNEEDMB 250 /* Extra megs for full X installation */ +#define DEBNEEDMB 800 /* Extra megs for debug sets */ + +/* + * Default filesets to fetch and install during installation + * or upgrade. The standard sets are: + * base etc comp games man misc rescue tests text xbase xcomp xetc xfont xserver + */ +#define SET_KERNEL_1_NAME "kern-GENERIC" +#define MD_SETS_VALID SET_KERNEL, SET_SYSTEM, SET_X11_NOSERVERS + +/* + * Machine-specific command to write a new label to a disk. + * For example, i386 uses "/sbin/disklabel -w -r", just like i386 + * miniroot scripts, though this may leave a bogus incore label. + * Sun ports should probably use DISKLABEL_CMD "/sbin/disklabel -w" + * to get incore to ondisk inode translation for the Sun proms. + * If not defined, we assume the port does not support disklabels and + * hand-edited disklabel will NOT be written by MI code. + * + * On virt68k, do what the miniroot install scripts did. + */ +#define DISKLABEL_CMD "disklabel -w -r" Index: src/usr.sbin/sysinst/arch/virt68k/menus.md.en diff -u /dev/null src/usr.sbin/sysinst/arch/virt68k/menus.md.en:1.1 --- /dev/null Sat Jan 6 07:38:14 2024 +++ src/usr.sbin/sysinst/arch/virt68k/menus.md.en Sat Jan 6 07:38:13 2024 @@ -0,0 +1,37 @@ +/* $NetBSD: menus.md.en,v 1.1 2024/01/06 07:38:13 thorpej Exp $ */ + +/* + * Copyright 1997 Piermont Information Systems Inc. + * All rights reserved. + * + * Based on code written by Philip A. Nelson for Piermont Information + * Systems Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of Piermont Information Systems Inc. may not be used to endorse + * or promote products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +/* virt68k machine dependent menus, english */ + Index: src/usr.sbin/sysinst/arch/virt68k/menus.md.es diff -u /dev/null src/usr.sbin/sysinst/arch/virt68k/menus.md.es:1.1 --- /dev/null Sat Jan 6 07:38:14 2024 +++ src/usr.sbin/sysinst/arch/virt68k/menus.md.es Sat Jan 6 07:38:13 2024 @@ -0,0 +1,37 @@ +/* $NetBSD: menus.md.es,v 1.1 2024/01/06 07:38:13 thorpej Exp $ */ + +/* + * Copyright 1997 Piermont Information Systems Inc. + * All rights reserved. + * + * Based on code written by Philip A. Nelson for Piermont Information + * Systems Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of Piermont Information Systems Inc. may not be used to endorse + * or promote products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +/* virt68k machine dependent menus, spanish */ + Index: src/usr.sbin/sysinst/arch/virt68k/menus.md.fr diff -u /dev/null src/usr.sbin/sysinst/arch/virt68k/menus.md.fr:1.1 --- /dev/null Sat Jan 6 07:38:14 2024 +++ src/usr.sbin/sysinst/arch/virt68k/menus.md.fr Sat Jan 6 07:38:13 2024 @@ -0,0 +1,36 @@ +/* $NetBSD: menus.md.fr,v 1.1 2024/01/06 07:38:13 thorpej Exp $ */ + +/* + * Copyright 1997 Piermont Information Systems Inc. + * All rights reserved. + * + * Written by Philip A. Nelson for Piermont Information Systems Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of Piermont Information Systems Inc. may not be used to endorse + * or promote products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +/* Menu definitions for sysinst. virt68k version, machine dependent. */ + Index: src/usr.sbin/sysinst/arch/virt68k/menus.md.pl diff -u /dev/null src/usr.sbin/sysinst/arch/virt68k/menus.md.pl:1.1 --- /dev/null Sat Jan 6 07:38:14 2024 +++ src/usr.sbin/sysinst/arch/virt68k/menus.md.pl Sat Jan 6 07:38:13 2024 @@ -0,0 +1,39 @@ +/* $NetBSD: menus.md.pl,v 1.1 2024/01/06 07:38:13 thorpej Exp $ */ +/* Based on english version: */ +/* NetBSD: menus.md.en,v 1.1 2002/03/24 22:04:05 scw Exp */ + +/* + * Copyright 1997 Piermont Information Systems Inc. + * All rights reserved. + * + * Based on code written by Philip A. Nelson for Piermont Information + * Systems Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of Piermont Information Systems Inc. may not be used to endorse + * or promote products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +/* virt68k machine dependent menus, Polish */ + Index: src/usr.sbin/sysinst/arch/virt68k/msg.md.de diff -u /dev/null src/usr.sbin/sysinst/arch/virt68k/msg.md.de:1.1 --- /dev/null Sat Jan 6 07:38:14 2024 +++ src/usr.sbin/sysinst/arch/virt68k/msg.md.de Sat Jan 6 07:38:13 2024 @@ -0,0 +1,84 @@ +/* $NetBSD: msg.md.de,v 1.1 2024/01/06 07:38:13 thorpej Exp $ */ + +/* + * Copyright 1997 Piermont Information Systems Inc. + * All rights reserved. + * + * Based on code written by Philip A. Nelson for Piermont Information + * Systems Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of Piermont Information Systems Inc. may not be used to endorse + * or promote products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +/* virt68k machine dependent messages, German */ + + +message md_hello +{Wenn Ihre Maschine nur über 4MB oder weniger Arbeitsspeicher verfügt, wird +sysinst fehlschlagen. Bitte installieren Sie in diesem Fall manuell. +} + +message md_may_remove_boot_medium +{ +} + +message dobootblks +{Installiere die Bootblöcke auf %s ... +} + +message newdisk +{Ihre Festplatte, %s, hat noch kein virt68k Disklabel. Sysinst +wird ein neues erstellen. +} + +message ordering +{Die Anordnung der Partition %s ist falsch. Erneut editieren?} + + +message set_kernel_1 +{Kernel (GENERIC)} + +.if notyet +/* XXX: not yet implemented */ +message emptypart +{Nach der oder den leeren Partition(en) existiert eine gültige Partition %c. +Bitte editieren Sie die Partitionstabelle noch einmal.} + +message existing +{Wollen Sie die vorhandene(n) BSD Partition(en) beibehalten?} + + +message nofreepart +{%s verfügt nicht über genügend freie Partitionen für NetBSD. +Mindestens 2 freie Partitionen (für das Root Dateisystem und Swap) sind nötig. +} + + +message notfirst +{NetBSD/virt68k muss im ersten Abschnitt der Bootdisk installiert werden. +Dieser Teil ist bei %s nicht frei. +} +.endif Index: src/usr.sbin/sysinst/arch/virt68k/msg.md.en diff -u /dev/null src/usr.sbin/sysinst/arch/virt68k/msg.md.en:1.1 --- /dev/null Sat Jan 6 07:38:14 2024 +++ src/usr.sbin/sysinst/arch/virt68k/msg.md.en Sat Jan 6 07:38:13 2024 @@ -0,0 +1,81 @@ +/* $NetBSD: msg.md.en,v 1.1 2024/01/06 07:38:13 thorpej Exp $ */ + +/* + * Copyright 1997 Piermont Information Systems Inc. + * All rights reserved. + * + * Based on code written by Philip A. Nelson for Piermont Information + * Systems Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of Piermont Information Systems Inc. may not be used to endorse + * or promote products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +/* virt68k machine dependent messages, english */ + + +message md_hello +{If your machine has 4MB or less, sysinst will not operate correctly. +} + +message md_may_remove_boot_medium +{ +} + +message dobootblks +{Installing boot blocks on %s.... +} + +message newdisk +{It appears that your disk, %s, has no virt68k disklabel. sysinst is +writing a disklabel. +} + +message ordering +{The order of partition %s is wrong. Edit again?} + +message set_kernel_1 +{Kernel (GENERIC)} + +.if notyet +/* XXX: not yet implemented */ + +message emptypart +{There is a valid partition %c after empty partition(s). +Please re-edit the partition table.} + +message existing +{Do you want to preserve existing BSD partition(s)?} + +message nofreepart +{%s does not have enough free partitions for NetBSD. +It must have at least 2 free partitions (for root file system and swap). +} + +message notfirst +{NetBSD/virt68k must be installed in the first part of the boot disk. +The first part of %s is not free. +} +.endif Index: src/usr.sbin/sysinst/arch/virt68k/msg.md.es diff -u /dev/null src/usr.sbin/sysinst/arch/virt68k/msg.md.es:1.1 --- /dev/null Sat Jan 6 07:38:14 2024 +++ src/usr.sbin/sysinst/arch/virt68k/msg.md.es Sat Jan 6 07:38:13 2024 @@ -0,0 +1,81 @@ +/* $NetBSD: msg.md.es,v 1.1 2024/01/06 07:38:13 thorpej Exp $ */ + +/* + * Copyright 1997 Piermont Information Systems Inc. + * All rights reserved. + * + * Based on code written by Philip A. Nelson for Piermont Information + * Systems Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of Piermont Information Systems Inc. may not be used to endorse + * or promote products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +/* virt68k machine dependent messages, spanish */ + + +message md_hello +{Si su maquina tiene 4MB o menos, sysinst no funcionará correctamente. +} + +message md_may_remove_boot_medium +{ +} + +message dobootblks +{Instalando bloques de arranque en %s.... +} + +message newdisk +{Parece que su disco, %s, no tiene un disklavel virt68k. sysinst va +a escribir un disklabel. +} + +message ordering +{El orden de la partición %s esta mal. ¿Editar de nuevo?} + +message set_kernel_1 +{Núcleo (GENERIC)} + +.if notyet +/* XXX: not yet implemented */ +message emptypart +{Hay una partición valida %c despues de particion(es) valida(s). +Por favor, reedite la tabla de particiones} + +message existing +{¿Quiere preservar particion(es) BSD existente(s)?} + +message nofreepart +{%s no tiene suficiente espacio libre para particiones para NetBSD. +Debe tener como minimo 2 particiones libres (para el sistema de archivos +raiz y para swap). +} + +message notfirst +{NetBSD/virt68k debe estar instalado en la primera parte del disco de arranque. +La primera parte de %s no esta libre. +} +.endif Index: src/usr.sbin/sysinst/arch/virt68k/msg.md.fr diff -u /dev/null src/usr.sbin/sysinst/arch/virt68k/msg.md.fr:1.1 --- /dev/null Sat Jan 6 07:38:14 2024 +++ src/usr.sbin/sysinst/arch/virt68k/msg.md.fr Sat Jan 6 07:38:13 2024 @@ -0,0 +1,60 @@ +/* $NetBSD: msg.md.fr,v 1.1 2024/01/06 07:38:13 thorpej Exp $ */ + +/* + * Copyright 1997 Piermont Information Systems Inc. + * All rights reserved. + * + * Written by Philip A. Nelson for Piermont Information Systems Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of Piermont Information Systems Inc. may not be used to endorse + * or promote products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +/* MD Message catalog -- french, virt68k version */ + +message md_hello +{Si votre machine possède 4Mo ou moins, sysinst ne pourra pas fonctionner +correctement. +} + +message md_may_remove_boot_medium +{ +} + +message dobootblks +{Installation des blocs de démarrage sur %s ... +} + +message newdisk +{Il apparaît que votre disque, %s, n'a pas de marque de label de disque virt68k. +sysinst écrit un label de disque. +} + +message ordering +{L'ordre de la partition %s est erroné. Modifier à nouveau ?} + +message set_kernel_1 +{Kernel (GENERIC)} + Index: src/usr.sbin/sysinst/arch/virt68k/msg.md.pl diff -u /dev/null src/usr.sbin/sysinst/arch/virt68k/msg.md.pl:1.1 --- /dev/null Sat Jan 6 07:38:14 2024 +++ src/usr.sbin/sysinst/arch/virt68k/msg.md.pl Sat Jan 6 07:38:13 2024 @@ -0,0 +1,62 @@ +/* $NetBSD: msg.md.pl,v 1.1 2024/01/06 07:38:13 thorpej Exp $ */ +/* Based on english version: */ +/* NetBSD: msg.md.en,v 1.1 2002/03/24 22:04:06 scw Exp */ + +/* + * Copyright 1997 Piermont Information Systems Inc. + * All rights reserved. + * + * Based on code written by Philip A. Nelson for Piermont Information + * Systems Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of Piermont Information Systems Inc. may not be used to endorse + * or promote products derived from this software without specific prior + * written permission. + * + * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS'' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +/* virt68k machine dependent messages, Polish */ + + +message md_hello +{Jesli masz mniej niz 4 MB ram, sysinst nie bedzie pracowal prawidlowo +} + +message md_may_remove_boot_medium +{ +} + +message dobootblks +{Instalowanie bootblokow na %s.... +} + +message newdisk +{Wyglada na to, ze twoj dysk %s, nie ma etykiety virt68k. sysinst zapisuje +taka etykiete. +} + +message ordering +{Uklad partycji %s jest bledny. Edytowac jeszcze raz?} + +message set_kernel_1 +{Kernel (GENERIC)}