Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/embedded/conf remove swap; these days x86 mach...
details: https://anonhg.NetBSD.org/src/rev/22ec6354d6bf
branches: trunk
changeset: 328336:22ec6354d6bf
user: christos <christos%NetBSD.org@localhost>
date: Mon Mar 31 18:18:45 2014 +0000
description:
remove swap; these days x86 machines don't need it.
diffstat:
distrib/utils/embedded/conf/x86.conf | 18 +++++-------------
1 files changed, 5 insertions(+), 13 deletions(-)
diffs (63 lines):
diff -r 99fc3bdef629 -r 22ec6354d6bf distrib/utils/embedded/conf/x86.conf
--- a/distrib/utils/embedded/conf/x86.conf Mon Mar 31 18:18:29 2014 +0000
+++ b/distrib/utils/embedded/conf/x86.conf Mon Mar 31 18:18:45 2014 +0000
@@ -1,28 +1,23 @@
-# $NetBSD: x86.conf,v 1.2 2014/03/31 17:05:03 christos Exp $
+# $NetBSD: x86.conf,v 1.3 2014/03/31 18:18:45 christos Exp $
# x86 shared config
#
image=$HOME/${board}.img
specialdirs="/kern /proc"
-swap=256
extra=8 # spare space
size=0 # autocompute
netbsdid=169
-ffsoffset=$((63 * 512))
+ffsoffset=63b
make_label_x86() {
# compute all sizes in terms of sectors
local totalsize=$(( ${newsize} * 1024 * 2 / 512 ))
- local swapsize=$(( ${swap} * 1024 ))
-
local aoffset=63
- local asize=$(( ${totalsize} - ${swapsize} - ${aoffset} ))
-
- local swapoffset=$(( ${aoffset} + ${asize} ))
+ local asize=$(( ${totalsize} - ${aoffset} ))
local bps=512
local spt=32
@@ -52,7 +47,6 @@
8 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: ${asize} ${aoffset} 4.2BSD ${fsize} ${bsize} 0 #
- b: ${swapsize} ${swapoffset} swap #
c: ${totalsize} 0 unused 0 0 #
d: ${totalsize} 0 unused 0 0 #
EOF
@@ -62,8 +56,7 @@
cat > ${mnt}/etc/fstab << EOF
# NetBSD /etc/fstab
# See /usr/share/examples/fstab/ for more examples.
-/dev/sd0a / ffs rw,log 1 1
-/dev/sd0b none swap sw 0 0
+/dev/${rootdev}0a / ffs rw,log 1 1
kernfs /kern kernfs rw
ptyfs /dev/pts ptyfs rw
procfs /proc procfs rw
@@ -77,8 +70,7 @@
cat > ${mnt}/etc/fstab << EOF
# NetBSD /etc/fstab
# See /usr/share/examples/fstab/ for more examples.
-/dev/sd0a / ffs rw,log,noatime,nodevmtime 1 1
-/dev/sd0b none swap sw 0 0
+/dev/${rootdev}0a / ffs rw,log,noatime,nodevmtime 1 1
kernfs /kern kernfs rw
ptyfs /dev/pts ptyfs rw
procfs /proc procfs rw
Home |
Main Index |
Thread Index |
Old Index