Web lists-archives.com

Re: [Progress Report1] Re: Using debootstrap




On 04/27/2018 08:49 AM, deloptes wrote:
Richard Owlett wrote:

QUESTION:
Has anyone personally used debootstrap to install to a flash drive?

I do install in a directory and then copy the content to the flash drive
then chroot and make it bootable

I was installing to the flash drive because I have less than 1GB available on my hard drive.


alternatively you ma install into directory where flash drive is mounted

I thought I was doing that. My TARGET is "/media/richard/rco" where "rco" is the label of a partition on the flash drive.

and
then chroot and make it bootable

I'm not that far yet.
My immediate goal is for debootstrap to write what would "resemble" a system to the flash drive.

The error message when attempting "debootstrap --second-stage" is
"cat: /usr/share/debootstrap/suite: No such file or directory".


forget not that you need to mount the system related /proc/ etc.

this is what I am using

         mount --make-unbindable -obind /proc/ $SYSTEM/proc/ && \
         mount --make-unbindable -obind /dev/ $SYSTEM/dev/ && \
         mount --make-unbindable -obind /dev/pts $SYSTEM/dev/pts && \
         mount --make-unbindable -obind /run $SYSTEM/run && \
         mount --make-unbindable -obind /sys $SYSTEM/sys/ && \
         chroot $SYSTEM su -


For the umount

         umount $SYSTEM/proc/ && \
         umount $SYSTEM/dev/pts && \
         umount $SYSTEM/dev/ && \
         umount $SYSTEM/run/ && \
         umount $SYSTEM/sys/


regards