Subject: Re: creating the bootable iso image
To: None <kamils80@gmail.com, netbsd-help@NetBSD.org,>
From: John Nemeth <jnemeth@victoria.tc.ca>
List: netbsd-users
Date: 07/22/2005 03:20:09
On Dec 12,  6:48am, Kamil Shakirov wrote:
} 
} Well, I built NetBSD 3.0 beta release doing the next steps in /usr/src:
} ./build.sh -O ../build/obj -T ../build/tools -R ../build/release -x -u 
} -U tools
} ./build.sh -O ../build/obj -T ../build/tools -R ../build/release -x -u 
} -U build
} and finally:
} ./build.sh -O ../build/obj -T ../build/tools -R ../build/release -x -u 
} -U release

     "release" implies "build" and you can do multiple ones at a time.
I usually do "build.sh ... tools sourcesets release".  I do
"sourcesets" so that when I install it on a machine, I have the sources
used to create the image available.

} So, now I have everything I need in /usr/build/release/i386
} 
} But I wanted to create a bootable CD image and I tried to make it doing:
} cd /usr/src/etc
} make DESTDIR=/usr/build/obj/destdir.i386 RELEASEDIR=/usr/build/release 
} iso-image
} 
} But it failed with:

[snip]

     You can just create the image manually with:

mkisofs -b i386/installation/floppy/boot-big.fs -J -o NetBSD-${today}.iso -r -V "NetBSD-current (${today})" -v releasedir

I pulled this line from one of my scripts.  ${today} is the current
date in yyyymmdd format.  That way I know what day I did the build.

}-- End of excerpt from Kamil Shakirov