Re: [Progress Report1] Re: Using debootstrap
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
alternatively you ma install into directory where flash drive is mounted and
then chroot and make it bootable
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
Reply to: