2011-01-14 13:26:28 +03:00
|
|
|
# $NetBSD: list.ramdisk,v 1.16 2011/01/14 10:26:33 tsutsui Exp $
|
2002-02-08 08:02:16 +03:00
|
|
|
|
2006-11-18 19:09:57 +03:00
|
|
|
SRCDIRS usr.bin/less
|
2009-04-29 22:01:50 +04:00
|
|
|
SRCDIRS bin sbin usr.bin usr.sbin
|
2002-02-08 08:02:16 +03:00
|
|
|
|
2006-11-18 19:09:57 +03:00
|
|
|
# Programs for a minimal ramdisk image
|
|
|
|
|
|
|
|
PROG bin/cat
|
|
|
|
PROG bin/chmod
|
|
|
|
PROG bin/cp
|
|
|
|
PROG bin/ln
|
|
|
|
PROG bin/ls
|
|
|
|
PROG bin/mkdir
|
|
|
|
PROG bin/mv
|
|
|
|
PROG bin/pax usr/bin/tar
|
|
|
|
PROG bin/pwd
|
|
|
|
PROG bin/rm
|
|
|
|
PROG bin/sh
|
|
|
|
PROG bin/stty
|
|
|
|
|
2011-01-14 13:26:28 +03:00
|
|
|
PROG sbin/chown bin/chgrp
|
2006-11-18 19:09:57 +03:00
|
|
|
PROG sbin/disklabel
|
|
|
|
PROG sbin/dmesg
|
|
|
|
PROG sbin/fsck
|
|
|
|
PROG sbin/fsck_ffs
|
|
|
|
PROG sbin/ifconfig
|
|
|
|
PROG sbin/init
|
|
|
|
PROG sbin/mknod
|
|
|
|
PROG sbin/mount
|
|
|
|
PROG sbin/mount_cd9660
|
|
|
|
PROG sbin/mount_ffs
|
|
|
|
# PROG sbin/mount_kernfs
|
|
|
|
PROG sbin/mount_msdos
|
|
|
|
PROG sbin/mount_nfs
|
2008-11-04 17:21:39 +03:00
|
|
|
PROG sbin/mount_tmpfs
|
2006-11-18 19:09:57 +03:00
|
|
|
PROG sbin/newfs sbin/mount_mfs
|
|
|
|
PROG sbin/ping
|
|
|
|
PROG sbin/reboot sbin/halt
|
|
|
|
PROG sbin/route
|
|
|
|
PROG sbin/swapctl
|
|
|
|
PROG sbin/umount
|
|
|
|
|
|
|
|
PROG usr/bin/ftp
|
|
|
|
PROG usr/bin/gzip usr/bin/gzcat usr/bin/gunzip
|
|
|
|
PROG usr/bin/sed
|
|
|
|
|
|
|
|
# One of these is rather useful
|
|
|
|
# PROG usr/bin/less usr/bin/more
|
|
|
|
# PROG usr/bin/more usr/bin/less
|
|
|
|
|
|
|
|
# sysinst doesn't use installboot
|
|
|
|
# PROG usr/sbin/installboot
|
|
|
|
|
|
|
|
PROG usr/sbin/chroot
|
|
|
|
|
|
|
|
SPECIAL ifconfig srcdir distrib/utils/x_ifconfig
|
|
|
|
SPECIAL ping srcdir distrib/utils/x_ping
|
|
|
|
SPECIAL route srcdir distrib/utils/x_route
|
|
|
|
# SPECIAL more srcdir distrib/utils/more
|
|
|
|
|
2002-02-08 08:02:16 +03:00
|
|
|
# init invokes the shell as -sh
|
|
|
|
ARGVLN sh -sh
|
|
|
|
|
|
|
|
# libhack.o is built by Makefile & included Makefile.inc
|
2010-02-05 13:01:16 +03:00
|
|
|
LIBS libhack.o -lbz2 -ledit -lutil -lcurses -lterminfo -lrmt -lcrypt -ll -lm -lz -lprop
|
2002-02-03 19:22:19 +03:00
|
|
|
|
|
|
|
# various files that we need in /etc for the install
|
2002-04-26 19:50:21 +04:00
|
|
|
COPY ${NETBSDSRCDIR}/etc/group etc/group
|
|
|
|
COPY ${NETBSDSRCDIR}/etc/master.passwd etc/master.passwd
|
|
|
|
COPY ${NETBSDSRCDIR}/etc/netconfig etc/netconfig
|
2009-09-20 23:49:07 +04:00
|
|
|
COPY ${DISTRIBDIR}/common/protocols etc/protocols
|
|
|
|
COPY ${DISTRIBDIR}/common/services etc/services
|
2002-02-03 19:22:19 +03:00
|
|
|
|
|
|
|
# we need the boot block in /usr/mdec + the MBR copy
|
Overhaul MBR handling (part 1):
<sys/bootblock.h>:
* Added definitions for the Master Boot Record (MBR) used by
a variety of systems (primarily i386), including the format
of the BIOS Parameter Block (BPB).
This information was cribbed from a variety of sources
including <sys/disklabel_mbr.h> which this is a superset of.
As part of this, some data structure elements and #defines
were renamed to be more "namespace friendly" and consistent
with other bootblocks and MBR documentation.
Update all uses of the old names to the new names.
<sys/disklabel_mbr.h>:
* Deprecated in favor of <sys/bootblock.h> (the latter is more
"host tool" friendly).
amd64 & i386:
* Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
be consistent with the naming convention of the msdosfs tools.
* Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
and it's confusing to have two functionally equivalent bootblocks,
especially given that "ufs" has multiple meanings (it could be
a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).
* Rework pbr.S (the first sector of bootxx_*):
+ Ensure that BPB (bytes 11..89) and the partition table
(bytes 446..509) do not contain code.
+ Add support for booting from FAT partitions if BOOT_FROM_FAT
is defined. (Only set for bootxx_msdos).
+ Remove "dummy" partition 3; if people want to installboot(8)
these to the start of the disk they can use fdisk(8) to
create a real MBR partition table...
+ Compile with TERSE_ERROR so it fits because of the above.
Whilst this is less user friendly, I feel it's important
to have a valid partition table and BPB in the MBR/PBR.
* Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
with other platforms.
* Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
we can boot off FAT partitions.
* Crank version of /usr/mdec/boot to 3.1, and fix some of the other
entries in the version file.
installboot(8) (i386):
* Read the existing MBR of the filesystem and retain the BIOS
Parameter Block (BPB) in bytes 11..89 and the MBR partition
table in bytes 446..509. (Previously installboot(8) would
trash those two sections of the MBR.)
mbrlabel(8):
* Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
to map the MBR partition type to the NetBSD disklabel type.
Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 08:25:43 +04:00
|
|
|
COPY ${DESTDIR}/usr/mdec/boot usr/mdec/boot
|
2003-06-05 18:30:11 +04:00
|
|
|
COPY ${DESTDIR}/usr/mdec/bootxx_ffsv1 usr/mdec/bootxx_ffsv1
|
2003-11-30 17:58:05 +03:00
|
|
|
COPY ${DESTDIR}/usr/mdec/bootxx_ffsv2 usr/mdec/bootxx_ffsv2
|
2002-02-03 19:22:19 +03:00
|
|
|
COPY ${DESTDIR}/usr/mdec/mbr usr/mdec/mbr
|
2003-06-05 18:30:11 +04:00
|
|
|
COPY ${DESTDIR}/usr/mdec/mbr_ext usr/mdec/mbr_ext
|
2002-02-03 19:22:19 +03:00
|
|
|
COPY ${DESTDIR}/usr/mdec/mbr_bootsel usr/mdec/mbr_bootsel
|
|
|
|
|
2002-02-08 08:02:16 +03:00
|
|
|
# and the boot script
|
2002-02-03 19:22:19 +03:00
|
|
|
CMD sed -e "s/@BOOTMODEL@/${BOOTMODEL}/" < ${CURDIR}/../common/dot.profile > .profile
|
2002-05-29 08:03:01 +04:00
|
|
|
MTREE ./.profile type=file uname=root gname=wheel mode=0444
|