Web lists-archives.com

[Progress Report1] Re: Using debootstrap




On 04/25/2018 09:19 AM, Richard Owlett wrote:
My goal is a very minimalist install to a flash drive. It will NOT have GRUB - GRUB on this machine is on a dedicated partition for convenience in some of my experiments.

 From reading several references I believe my command should be:

debootstrap --arch=i386 --include=apt-get --variant=minbase --no-check-gpg --print-debs --keep-debootstrap-dir stable /media/richard/rco /media/cdrom0/????

I have two questions:
   1. What should replace "????" as I'll be using DVD1 of Debian 9.1.0
      as my "repository"?
   2. As I expect the console display may exceed the scroll back limits,
      I wish to pipe the console display for later reference without
      impeding answering any prompts I get. I've seen a description for
      doing that, but I can't remember it. Pointers?



Taking those questions in reverse order ;}

SCRIPT(1) was the command I had been trying to recall. I does things in a comfortable way.

I was reading man page for SCREEN(1) when SCRIPT(1) was suggested. Part of the recommendation for SCREEN(1) was it being mentioned in the release notes for *upgrades*. In fact the release notes describe using it for _remote_ upgrades, not local new installs via debootstrap.

Doing:
debootstrap --verbose --arch=i386 --include=apt-get --variant=minbase
--no-check-gpg --print-debs --keep-debootstrap-dir stable /media/richard/rco
file:////media/cdrom0/debian/
generates no error messages.
HOWEVER, very few files are actually written to the flash drive
at /media/richard/rco and a subsequent run of
   "debootstrap  --second-stage"
yields a file not found message.

I have some ideas about my problems and will have time this weekend.
Thank you.