Source-Changes-HG archive

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

[src/netbsd-3-0]: src/distrib Pull up following revision(s) (requested by pav...



details:   https://anonhg.NetBSD.org/src/rev/ba817b925251
branches:  netbsd-3-0
changeset: 579306:ba817b925251
user:      ghen <ghen%NetBSD.org@localhost>
date:      Mon Oct 16 20:46:55 2006 +0000

description:
Pull up following revision(s) (requested by pavel in ticket #1548):
        distrib/notes/mac68k/prep: revision 1.15
        distrib/utils/sysinst/arch/mac68k/md.c: revision 1.49
Apply patch from Hauke Fath to solve port-mac68k/29049: sysinst did not
newfs and mount the target filesystem.
In Hauke's words: "Basically, the mac68k md_make_bsd_partitions() function,
which replaces the MI make_bsd_partitions() because the mac68k port does not
have an on-disk BSD disklabel, neglected to sign up BSD partitions for
newfs'ing and mounting by setting the appropriate flags."
Revert the commit to the install notes (rev. 1.14 of notes/mac68k/prep) which
added a warning and a workaround for this bug, as requested by hubertf in the
PR log.

diffstat:

 distrib/notes/mac68k/prep              |  77 +---------------------------------
 distrib/utils/sysinst/arch/mac68k/md.c |   3 +-
 2 files changed, 3 insertions(+), 77 deletions(-)

diffs (108 lines):

diff -r 7589c9e6ae1c -r ba817b925251 distrib/notes/mac68k/prep
--- a/distrib/notes/mac68k/prep Mon Oct 16 20:36:57 2006 +0000
+++ b/distrib/notes/mac68k/prep Mon Oct 16 20:46:55 2006 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: prep,v 1.13.6.1 2005/12/15 20:31:53 tron Exp $
+.\"    $NetBSD: prep,v 1.13.6.1.2.1 2006/10/16 20:46:55 ghen Exp $
 .
 No matter which installation method you use, there is some planning
 and preparation that is required beforehand.  First and foremost,
@@ -38,81 +38,6 @@
 .Sx Installing\ the\ NetBSD\ System\ (Sysinst\ Method)
 in this document.
 .Pp
-.
-.Ss NetBSD/mac68k sysinst Bug Alert
-.
-Because of a problem that could not be fixed in time for this release, the
-.Nx*M
-.Ic sysinst
-installer neither creates file-systems on the configured partitions,
-nor mounts them on the configured mountpoints, though it claims to.
-Instead,
-.Ic sysinst
-attempts to install on the ramdisk and fails.
-.Pp
-Until this is fixed, you can either fall back to the Traditional Method
-of installation described below, or you can use the following workaround:
-.Pp
-While editing the partition table in
-.Ic sysinst ,
-note on a sheet of paper the partitions with the related mount points
-and disk devices. Since you have to do some manual work here, you probably
-want to keep the partition structure simple. Continue with the installation,
-and in the
-.Pp
-.
-.Dl "Ok, we are now ready to install NetBSD on your hard disk (sd0)."
-.Dl "Nothing has been written yet.  This is your last chance to"
-.Dl "quit this process before anything gets changed."
-.Dl ""
-.Dl "Shall we continue?"
-.
-.Pp
-dialog, send
-.Ic sysinst
-to the background by pressing ctrl-Z. In the following, adjust "sd" (SCSI) or
-"wd" (IDE) drive type, drive number (0, 1, ...) and partition letters 
-("a" for the root filesystem, "d", "e", etc.) as appropriate for
-your setup. A concatenation of this with "/dev/r" will give you
-the device name for the partition, e.g. 
-.Pa /dev/rsd0a
-for the root partition of your first SCSI disk.
-.Pp
-At the shell prompt, manually create filesystems in the desired
-partitions like
-.Pp
-.Dl # newfs /dev/rsd0a
-.Pp
-etc. for all the partitions you noted down.
-Mount the root partition to
-.Pa /targetroot ,
-e.g.
-.Pp
-.Dl # mount /dev/sd0a /targetroot
-.Pp
-Then, if you have set up other partitions, create directories below
-.Pa /targetroot
-as mount points
-and mount the partitions there according to your notes like e.g.
-.Pp
-.Dl # mount /dev/sd0e /targetroot/var
-.Pp
-You can list the mounted partitions with
-.Xr df 1
-and 
-.Xr mount 8
-commands, unmounting a wrongly mounted filesystem can be done e.g. with
-.Dq umount /targetroot/var .
-.Pp
-When all the partitions that you want to install to have been properly
-set up, you can return to
-.Ic sysinst
-with the 'fg' command and proceed with the installation.
-.
-.Pp
-.
-.Ss Preparation for the Traditional Method
-.
 If you are using the Traditional method of installation you must use a
 disk partitioning utility to designate the different partitions you
 will want in your final
diff -r 7589c9e6ae1c -r ba817b925251 distrib/utils/sysinst/arch/mac68k/md.c
--- a/distrib/utils/sysinst/arch/mac68k/md.c    Mon Oct 16 20:36:57 2006 +0000
+++ b/distrib/utils/sysinst/arch/mac68k/md.c    Mon Oct 16 20:46:55 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.44 2004/11/14 13:34:53 he Exp $ */
+/*     $NetBSD: md.c,v 1.44.4.1 2006/10/16 20:46:55 ghen Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -1032,6 +1032,7 @@
                    case UFS_PART:
                        bsdlabel[pl].pi_fstype = FS_BSDFFS;
                        strcpy (bsdlabel[pl].pi_mount, bzb->mount_point);
+                       bsdlabel[pl].pi_flags |= PIF_NEWFS | PIF_MOUNT;
                        break;
                    case SWAP_PART:
                        bsdlabel[pl].pi_fstype = FS_SWAP;



Home | Main Index | Thread Index | Old Index