Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sysinst/arch/luna68k Adapt to extended partitioning...



details:   https://anonhg.NetBSD.org/src/rev/0aa487b8891a
branches:  trunk
changeset: 331166:0aa487b8891a
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Aug 04 08:59:28 2014 +0000

description:
Adapt to extended partitioning support

diffstat:

 usr.sbin/sysinst/arch/luna68k/md.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (59 lines):

diff -r 327d96976db4 -r 0aa487b8891a usr.sbin/sysinst/arch/luna68k/md.c
--- a/usr.sbin/sysinst/arch/luna68k/md.c        Mon Aug 04 08:50:13 2014 +0000
+++ b/usr.sbin/sysinst/arch/luna68k/md.c        Mon Aug 04 08:59:28 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.2 2014/08/03 16:09:40 martin Exp $    */
+/*     $NetBSD: md.c,v 1.3 2014/08/04 08:59:28 martin Exp $    */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -129,8 +129,8 @@
         * Make sure that a boot partition (old 4.3BSD UFS) is prepared
         * properly for our native bootloader.
         */
-       if (bsdlabel[PART_BOOT].pi_fstype != FS_BSDFFS ||
-           (bsdlabel[PART_BOOT].pi_flags & PIF_NEWFS) == 0) {
+       if (pm->bsdlabel[PART_BOOT].pi_fstype != FS_BSDFFS ||
+           (pm->bsdlabel[PART_BOOT].pi_flags & PIF_NEWFS) == 0) {
                msg_display(MSG_nobootpartdisklabel);
                process_menu(MENU_ok, NULL);
                return 0;
@@ -156,7 +156,7 @@
 {
 
        if (get_ramsize() <= 32)
-               set_swap(diskdev, bsdlabel);
+               set_swap(pm->diskdev, pm->bsdlabel);
 
        return 0;
 }
@@ -166,9 +166,9 @@
 {
        const char *mntdir = "/mnt2";
 
-       msg_display(MSG_copybootloader, diskdev);
+       msg_display(MSG_copybootloader, pm->diskdev);
        if (!run_program(RUN_SILENT | RUN_ERROR_OK,
-           "mount /dev/%s%c %s", diskdev, 'a' + PART_BOOT, mntdir)) {
+           "mount /dev/%s%c %s", pm->diskdev, 'a' + PART_BOOT, mntdir)) {
                mnt2_mounted = 1;
                run_program(0, "/bin/cp /usr/mdec/boot %s", mntdir);
                run_program(RUN_SILENT | RUN_ERROR_OK, "umount %s", mntdir);
@@ -219,7 +219,7 @@
 {
 
        if (get_ramsize() <= 32)
-               set_swap(diskdev, bsdlabel);
+               set_swap(pm->diskdev, pm->bsdlabel);
 
        return 1;
 }
@@ -238,7 +238,7 @@
         * We'll update bootloader only if the old one was installed.
         */
        if (!run_program(RUN_SILENT | RUN_ERROR_OK,
-           "mount -r /dev/%s%c %s", diskdev, 'a' + PART_BOOT, mntdir)) {
+           "mount -r /dev/%s%c %s", pm->diskdev, 'a' + PART_BOOT, mntdir)) {
                mnt2_mounted = 1;
                snprintf(bootpath, sizeof(bootpath), "%s/%s", mntdir, "boot");
                if (stat(bootpath, &sb) == 0 && S_ISREG(sb.st_mode))



Home | Main Index | Thread Index | Old Index