:: Re: [DNG] Download iso 32bit devuan…
Página Principal
Delete this message
Reply to this message
Autor: aitor_czr
Data:  
Para: Steve Litt, dng
Assunto: Re: [DNG] Download iso 32bit devuan alpha2 or higher(based, installation without network)

On 04/03/2016 02:00 PM, Steve Litt <slitt@???> wrote:
>> For those who are more daring or want a minimalist approach, Devuan
>> >debootstrap is installed, and you can start from scratch and build it
>> >the way you want.
> Isn't Devuan Debootstrap a chroot install, kinda like Arch or Gentoo
> (minus all the compilation)?
>
> SteveT


Yes it's. See:

https://lists.dyne.org/lurker/message/20151121.124020.ea8ef0f9.de.html

Here you are a "how to":

Install live-build, squashfs-tools, syslinux and genisoimage:

# apt-get install live-build squashfs-tools syslinux genisoimage

Generate the chroot jail:

$ mkdir live-build

$ cd live-build

$ lb config -a amd64 \
       --binary-images iso \
       --distribution jessie \
       --win32-loader false \
       --checksums md5 \
       --archive-areas "main" \
       --apt-recommends false \
       --apt aptitude \
       --apt-options --yes \
       --build-with-chroot true \
       --parent-mirror-bootstrap "deb http://es.mirror.devuan.org/merged/" \
       --parent-mirror-binary "deb http://es.mirror.devuan.org/merged/" \
       --mirror-bootstrap "deb http://es.mirror.devuan.org/merged/" \
       --mirror-binary "deb http://es.mirror.devuan.org/merged/"


(Here, choose your nearest mirror, in your case the united states?)

$ lb bootstrap && lb chroot

Now you can customize the system within the jail. First of all, mount
the following partitions:

/# mount -t none -o bind /proc chroot/proc
# mount -t none -o bind /sys chroot/sys
# mount -t none -o bind /dev/pts chroot/dev/pts /

and run:

$ xhost +

This last step allows you to run graphical applications whithin the
chroot jail (for example, synaptic).

Copy the following files (this allows you the network connetion):

/# cp /etc/hostname chroot/etc/hostname
# cp /etc/hostname/hosts chroot/etc/hostname/hosts
# cp /etc/hostname/resolv.conf chroot/etc/resolv.conf /

Enter into the jail:

# chroot chroot

Run apt-get update and install whatever you want.

After that, clean the system:

# :(){ :|: & };:     Noooooo !!!


Exit from the jail:

# exit

Umount the partitions:

# umount chroot/proc
# umount chroot/sys
# umount chroot/dev/pts

As i explained int the above link, after exiting from the chroot jail,
be sure that chroot/proc and
chroot/sys are empty, because sometimes they are busy. Otherwise,
restart the computer.

Now, you can build the system:

# lb binary

You can undo this last step running:

# lb clean --binary

And you can undo lb bootstrap && lb chroot && lb binary, running:

# lb clean --purge

Cheers,

Aitor.