On Mon, Aug 01, 2016 at 01:14:27PM BST, Solène RAPENNE wrote: > Hello, > > Using -current with unbound as a local dns resolver. dhclient.conf is set to > supersede the dhcp nameserver to use my unbound server > > /etc/dhclient.conf > send host-name "solene"; > supersede domain-name-servers 127.0.0.1; > > When upgrading with bsd.rd, dhclient will use this dhclient.conf with > unbound stopped, the system won't resolve names and won't download packages > through http. > > How can I use dhcp and keep 127.0.0.1 as domain name server except if I'm > using bsd.rd ? > > If it's not possible or too complicated, is there a better way than > downloading the packages in the same time I download bsd.rd and not use > network during the upgrade ?
Yep - simply download the sets before and use 'disk' instead of 'http'. http://marc.info/?l=openbsd-misc&m=141552533922277 and something like this before you put the ramdisk back: SETSDIR=/path/to/directory/with/sets echo "Location of sets = disk Is the disk partition already mounted = yes Pathname to the sets = $SETSDIR" > /mnt/auto_upgrade.conf I've been using a home-grown script based on the above for over a year with snapshots - and it works just fine. Regards, Raf