# Convert OpenBSD i386 to amd64 # WARNING: this is a bad idea and is not supported in any way # this has only been tested on 6.4 # /dev/diskmap is different between i386 and amd64 # verify on a amd64 system the device and create it cd /dev rm diskmap mknod -m 0640 diskmap c 90 0 # copy kernel files cd /usr/rel # where you put the release files ln -f /bsd /obsd && cp bsd.mp /nbsd && mv /nbsd /bsd cp bsd.rd / cp bsd /bsd.sp # create kernel checksum sha256 -h /var/db/kernel.SHA256 /bsd cp /sbin/reboot /sbin/oreboot cp /usr/sbin/installboot /usr/sbin/oinstallboot # unpack the sets tar -C / -xzphf xshare64.tgz tar -C / -xzphf xserv64.tgz tar -C / -xzphf xfont64.tgz tar -C / -xzphf xbase64.tgz tar -C / -xzphf man64.tgz tar -C / -xzphf game64.tgz tar -C / -xzphf comp64.tgz tar -C / -xzphf base64.tgz # Install last! /usr/sbin/oinstallboot sd0 /sbin/oreboot # after reboot, ensure all device files are correct cd /dev ./MAKEDEV all # reinstall packages with the amd64 version pkg_add -D installed -u # reboot one last time reboot