-/dev d 755 0 0 - - - - -
-/dev/null c 666 0 0 1 3 0 0 -
-/dev/log c 666 0 0 4 0 0 0 -
-/dev/console c 666 0 0 4 0 0 0 -
-/dev/ttyc c 666 0 0 4 1 1 1 4
-/dev/tty c 666 0 0 5 0 0 0 -
-/dev/tty0 c 666 0 0 4 0 0 1 4
-/dev/imgrd b 666 0 0 1 6 0 0 -
-#/dev/ttyp c 666 0 0 4 128 128 1 16
+/dev d 755 0 0 - - - - -
+/dev/null c 666 0 0 1 3 0 0 -
+/dev/log c 666 0 0 4 0 0 0 -
+/dev/console c 666 0 0 4 0 0 0 -
+/dev/ttyc c 666 0 0 4 1 1 1 4
+/dev/tty c 666 0 0 5 0 0 0 -
+/dev/tty0 c 666 0 0 4 0 0 1 4
+/dev/imgrd b 666 0 0 1 6 0 0 -
+/dev/c0d0 b 600 0 0 3 0 0 0 -
+/dev/c0d0p0s0 b 600 0 0 3 128 0 0 -
+/dev/c0d0p0s1 b 600 0 0 3 129 0 0 -
+/dev/c0d0p0s2 b 600 0 0 3 130 0 0 -
+/dev/c0d0p0s3 b 600 0 0 3 131 0 0 -
+/dev/c0d1 b 600 0 0 3 5 0 0 -
+/dev/c1d0 b 600 0 0 8 0 0 0 -
+/dev/fd0 b 666 0 0 2 0 0 0 -
+#/dev/ttyp c 666 0 0 4 128 128 1 16
/bin/service -c up /sbin/at_wini -dev /dev/c0d0 -label at_wini_0
/bin/service -cr up /sbin/at_wini -dev /dev/c1d0 -label at_wini_1 -args instance=1
fi
-/bin/service -c edit /sbin/mfs -label fs_imgrd
/bin/service up /sbin/procfs || echo "WARNING: couldn't start procfs"
if /bin/sysenv rootdevname >/dev/null
echo 'Looking for boot CD. This may take a minute.'
echo 'Please ignore any error messages.'
echo
- cddev=`/usr/bin/cdprobe` || { echo 'No CD found'; exit 1; }
+ cddev=`cdprobe` || { echo 'No CD found'; exit 1; }
export cddev
echo "Loading ramdisk from ${cddev}p1"
- /usr/bin/loadramdisk "$cddev"p1
+ loadramdisk "$cddev"p1
elif [ "$rootdevname" = "/dev/ram" ]
then
if /bin/sysenv rootdevname >/dev/null
fi
echo "Loading ramdisk from $ramimagename"
- /usr/bin/loadramdisk "$ramimagename" || echo "WARNING: loadramdisk failed"
+ loadramdisk "$ramimagename" || echo "WARNING: loadramdisk failed"
fi
echo "Root device name is $rootdevname"
if [ -e $FSCK ]
bin d--755 0 0
cdprobe ---755 0 0 cdprobe
dev2name ---755 0 0 dev2name
- loadramdisk ---755 0 0 loadramdisk
+ fsck.mfs ---755 0 0 fsck.mfs
mount ---755 0 0 mount
sh ---755 0 0 sh
service ---755 0 0 service
sysenv ---755 0 0 sysenv
- fsck.mfs ---755 0 0 fsck.mfs
$
sbin d--755 0 0
- @ACPI@
+ floppy ---755 0 0 floppy
ahci ---755 0 0 ahci
at_wini ---755 0 0 at_wini
ext2 ---755 0 0 ext2
- floppy ---755 0 0 floppy
- pci ---755 0 0 pci
mfs ---755 0 0 mfs
procfs ---755 0 0 procfs
$
+ usr d--755 0 0
+ bin d--755 0 0
+ loadramdisk ---755 0 0 loadramdisk
+ $
+ sbin d--755 0 0
+ @ACPI@
+ pci ---755 0 0 pci
+ $
+ $
dev d--755 0 0
@DEV@
$
exec </dev/null
FSCK=/bin/fsck.mfs
-ACPI=/sbin/acpi
+ACPI=/usr/sbin/acpi
if [ -e $ACPI -a -n "`sysenv acpi`" ]
then
/bin/service -c up $ACPI
fi
-/bin/service -c up /sbin/pci
+/bin/service -c up /usr/sbin/pci
/bin/service -cn up /sbin/floppy -dev /dev/fd0
if [ X`/bin/sysenv ahci` = Xyes ]
then
/bin/service -c up /sbin/at_wini -dev /dev/c0d0 -label at_wini_0
/bin/service -cr up /sbin/at_wini -dev /dev/c1d0 -label at_wini_1 -args instance=1
fi
-/bin/service -c edit /sbin/mfs -label fs_imgrd
/bin/service up /sbin/procfs || echo "WARNING: couldn't start procfs"
if /bin/sysenv rootdevname >/dev/null
exec su root mkboot bootable
hdboot:
- rm -rf /boot/minix/.temp/
- mkdir -p /boot/minix/.temp
+ rm -rf ${DESTDIR}/boot/minix/.temp/
+ mkdir -p ${DESTDIR}/boot/minix/.temp
# mod_0 is used to make alphabetical order equal to the boot order
for i in ${PROGRAMS}; \
do \
let n=n+1 >/dev/null; \
[ "$$n" -ge 10 ] && prefix="mod" || prefix="mod0"; \
- newname="/boot/minix/.temp/$${prefix}$${n}_`basename $$i`"; \
+ newname="${DESTDIR}/boot/minix/.temp/$${prefix}$${n}_`basename $$i`"; \
cp $$i $$newname; \
strip -s $$newname; \
gzip $$newname; \
done
- cp ../kernel/kernel /boot/minix/.temp/
- strip -s /boot/minix/.temp/kernel
+ cp ../kernel/kernel ${DESTDIR}/boot/minix/.temp/
+ strip -s ${DESTDIR}/boot/minix/.temp/kernel
sh mkboot $@
sh ../commands/update_bootcfg/update_bootcfg.sh
exec su root mkboot $@
@sync
-install: includes services hdboot
+install:
+ if [ ${DESTDIR}X != X ]; \
+ then ${MAKE} cross_install; \
+ else ${MAKE} includes services hdboot; \
+ fi
cross_install:
if [ ! -d ${DESTDIR}/multiboot ] ; \
mkdir ${DESTDIR}/multiboot;\
fi
#ext2 might be needed
- for i in ${PROGRAMS} ../kernel/kernel ../servers/ext2/ext2;\
- do\
- newname="${DESTDIR}/multiboot/`basename $$i`"; \
- cp $$i $$newname;\
- strip -s $$newname;\
+ for i in ${PROGRAMS} ../servers/ext2/ext2; \
+ do \
+ let n=n+1 >/dev/null; \
+ [ "$$n" -ge 10 ] && prefix="mod" || prefix="mod0"; \
+ newname="${DESTDIR}/multiboot/$${prefix}$${n}_`basename $$i`"; \
+ cp $$i $$newname; \
+ strip -s $$newname; \
+ gzip -f $$newname; \
done
+ cp ../kernel/kernel ${DESTDIR}/multiboot/
+ strip -s ${DESTDIR}/multiboot/kernel
# download and update NetBSD reference sources.
nbsd_fetch: