On Fri, Dec 29, 2017 at 8:26 AM, Richard Owlett <[email protected]> wrote:
> On 12/29/2017 03:28 AM, Carl Karsten wrote: > >> in 2009 I messed with debootstrap to set up a ide drive in a usb caddy > >> - When I was done, put the drive in a headless box, power it up and >> it would boot into a new debian box. I forget where installing grub >> fit into this process. for sure it was a building a "normal" debian >> install on a blank drive. >> >> > That's a reasonable description of my goal. GRUB would not enter it as the > end product would be a bootable flash drive to be mailed to someone else. if someone else is going to boot something, there needs to be a boot loader. But I think we can ignore this topic because it doesn't sound like you need what debootstrap does given it does sound like this does do what you want and is much easier: (copied from above, removed the SHA256SUM file to make it easier to read. + wget http://ftp.debian.org/debian/dists/stretch/main/installer- amd64/current/images/hd-media/boot.img.gz + wget https://cdimage.debian.org/debian-cd/current/amd64/iso- cd/debian-9.3.0-amd64-netinst.iso + zcat boot.img.gz | sudo dcfldd of=/dev/sdc + pmount /dev/sdc sdc + cp debian-9.3.0-amd64-netinst.iso /media/sdc > The Debian installer can manufacture that result (with use of custom > preseeds) but it asks the wrong set of questions. Basically it does a good > job of doing everything for everyone and every environment. > What are the right questions? If the goal is "no questions" then you probably want this: https://github.com/CarlFK/video-stack-deploy/blob/nbpy/roles/tftp-server/files/d-i/stretch/preseed.cfg which ends with : d-i preseed/include string ../preseed_local_debian.cfg That is where we put the things that change d-i mirror/http/hostname string ftp.debian.org d-i passwd/username string username d-i passwd/user-password-crypted password $6$fSX3p3K6OXe$NwfRPWm8hTTt0cm40gD69R4ltdJbAoVcMqkVLSnIQSiFP0J3vs46S63PY/hLnWPoITZzrdh3KSYHEqLv/LHQg0 d-i time/zone string US/Pacific You can put those lines into preseed.cfg You can also take out all the # comment lines - which I find easier to deal with given how much of that file is # comments. > Power users would likely consider my goal to be a crippled installer. But > it would intrinsically meet *MY* goals by doing things *MY* way. Those > flash drives might be considered a prototype OS to be mailed to a friend in > another state. > > Thank you. > > > > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug > -- Carl K _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
