commit some stragglers in my source tree, cleaning up of ramdisk installation.
authorrahnds <rahnds@openbsd.org>
Tue, 18 Feb 1997 15:46:37 +0000 (15:46 +0000)
committerrahnds <rahnds@openbsd.org>
Tue, 18 Feb 1997 15:46:37 +0000 (15:46 +0000)
distrib/powerpc/Makefile
distrib/powerpc/miniroot/Makefile
distrib/powerpc/miniroot/install.sub

index fe723e2..f60e60a 100644 (file)
@@ -1,5 +1,5 @@
 #      $NetBSD: Makefile,v 1.1 1995/07/18 04:12:51 briggs Exp $
 
-SUBDIR= inst kc
+SUBDIR= miniroot
 
 .include <bsd.subdir.mk>
index e5222e5..62af4db 100644 (file)
@@ -6,10 +6,12 @@ TOP=          ${.CURDIR}/..
 IMAGE=         miniroot-${REV}.fs
 CRUNCHCONF?=    ${TOP}/miniroot/${CBIN}.conf
 BASE=miniroot
+KERNEL=                ${SRCSYSDIR}/arch/powerpc/compile/MINI/bsd
 
 MOUNT_POINT=   /mnt1
 BDEV=          /dev/rd0a
-CDEV=          /dev/rrd0c
+CDEV=          /dev/rrd0a
+RDEV=          /dev/rd0c
 
 .include "${TOP}/inst-common/Makefile.inc"
 
@@ -28,13 +30,22 @@ ${IMAGE}:   do_prep do_mount do_files do_umount_copy do_unconfig
        rm rd.pid;\
        fi
 
+elfrdsetroot:  ${TOP}//elfrdsetroot.c
+       ${HOSTCC} -o elfrdsetroot ${TOP}/elfrdsetroot.c
+
+setroot: ${IMAGE} bsd elfrdsetroot
+       elfrdsetroot bsd < ${IMAGE}
+
+bsd:   ${KERNEL}
+       cp ${KERNEL} bsd
+
 do_prep: ${CBIN} do_unconfig
-       sh ${.CURDIR}/start_rdconfig.sh ${CDEV} ${NBLKS}
+       sh ${.CURDIR}/start_rdconfig.sh ${RDEV} ${NBLKS}
        dd if=/usr/mdec/sdboot of=${CDEV}
        disklabel -w ${CDEV} ${DISKTYPE}
        
 do_mount:
-       -newfs ${NEWFSARGS} -s ${NBLKS} ${BDEV} ${DISKTYPE}
+       -newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE}
        mount ${BDEV} ${MOUNT_POINT}
  
 do_umount_copy:
index 756940f..23f6e95 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $OpenBSD: install.sub,v 1.2 1997/02/17 17:00:05 rahnds Exp $
+#      $OpenBSD: install.sub,v 1.3 1997/02/18 15:46:38 rahnds Exp $
 #      $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -655,7 +655,7 @@ install_from_mounted_fs() {
                fi
 
                # Extract file
-               cat $_filename | (cd /mnt; tar --unlink -zxvpf -)
+               cat $_filename | (cd /mnt; pax -r -pe -z )
                echo "Extraction complete."
                _setsdone="$_f $_setsdone"
 
@@ -1011,11 +1011,11 @@ __install_tape_2
                getresp "1"
                case "$resp" in
                1)
-                       _xcmd="tar --unlink -zxvpf -"
+                       _xcmd="pax -r -pe -z"
                        ;;
 
                2)
-                       _xcmd="tar --unlink -xvpf -"
+                       _xcmd="pax -r -pe"
                        ;;
 
                *)