Installing NetBSD from GNU/Linux

ET CA FAIT DES BULLES

fsck_ext2fs has been enhanced therefore this is now possible since netbsd-current Sun Mar 31 13:16:52 2019 UTC (revs 1.36 - 1.39)

The script has been tested against

Fetch the latest netbsd-current sets

mkdir -p /data/kernels/netbsd/
cd /data/kernels/netbsd/
source=http://ftp.fr.netbsd.org/pub/NetBSD-daily/HEAD/201904010540Z/amd64
for set in kern-GENERIC modules base comp debug etc man misc tests text; do
       echo -n fetching binary/sets/$set.tar.xz...
       wget -q $source/binary/sets/$set.tar.xz && echo done
done; unset set
wget $source/binary/kernel/netbsd-INSTALL.gz
wget $source/binary/kernel/netbsd-INSTALL_XEN3_DOMU.gz
wget $source/binary/kernel/netbsd-XEN3_DOMU.gz

on XEN

mkdir -p /data/guests/netbsdextfs/
cd /data/guests/netbsdextfs/

or on bare-metal

cd ~/

and proceed with the script

wget http://pub.nethence.com/bin/netbsd.install.bash
chmod +x netbsd.install.bash 
./netbsd.install.bash -h
./netbsd.install.bash baremetal

TODO things to check

Resources

Partitioning

NetBSD

EXT2

GRUB

Troubleshooting

Nethence | Doc | Pub | Lab | Pbraun | SNE Russia | xhtml