Build scripts for small debian live images (similar to woof)

A home for all kinds of Puppy related projects
Message
Author
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#151 Post by fredx181 »

dancytron wrote:Musher,

Not sure if this is what you are looking for (I haven't read the whole thread), but this is what Fred did to automate making a Debian Live/Porteus Boot starting from a Debian Net-install.

https://github.com/DebianDog/MakeLive
Note that this does not work with Debian 9 (Stretch) because of the switch to "overlayfs" instead of "aufs" (aufs not included in kernel by default) in Stretch. So it only works for Jessie.

EDIT: Fixed broken netinstall ISO url links on https://github.com/DebianDog/MakeLive.
And made obvious it's for Jessie only.

Fred

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

#152 Post by anikin »

belham2 wrote:... Don't worry, Musher, this method is about as ready for prime time (for murga-land here) as the Rolling Stones are ready to retire. In other words,never. :lol: ---unless our dear, beloved Anikin (and/or someone else) puts some documentation & organization effort into it & gets it down here on Murga.
As a matter of fact it is really easy. So easy, that eating a piece of cake, or a bowl of cherries, in comparison will be like forced prison labor. For this post, I opened 3 terminal windows and issued the following commands:

Code: Select all

mkdir -p stretch/chroot && cd stretch &&
debootstrap --arch=i386 --variant=minbase stretch chroot http://ftp.us.debian.org/debian/

mkdir -p jessie/chroot && cd jessie &&
debootstrap --arch=i386 --variant=minbase jessie chroot http://ftp.us.debian.org/debian/

mkdir -p xxerus/chroot && cd xxerus &&
debootstrap --arch=i386 --variant=minbase xenial chroot http://us.archive.ubuntu.com/ubuntu/
Basically, I had 3 build processes running in parallel - just as an example for this post. You don't do this in real life. The commands are self-explanotary: create a directory, say <stretch>, inside it another one named <chroot>. The final build will obviously occur in the <chroot> directory. Now the command itself: <debootstrap --arch=i386 --variant=minbase stretch chroot http://ftp.us.debian.org/debian/> again self-explanotory --arch=i386 (or amd64) this will be our architecture. Then strech/jessie/xenial - the name of the Debian/Ubuntu release. Then, chroot - the name of the directory where the build will occur. And <http://ftp.us.debian.org/debian/> the repository from which packages for the build will be downloaded (choose your own (country/closest) mirror, like de, ch, fi, ru, etc.,) I have a more or less decent internet speed and in about ~ 10 minutes or so I had 3 minbase builds. It is called minbase - the most minimal you can get with Debian/Ubuntu. The build is extremely spartan - no kernel, no audio, no WM, no networking - all that will be installed in the second, <chroot> phase. Which will be an absolutely trivial job <apt-get update && apt-get install this that and_something_else>.

Attached are the build logs, hopefully, they will help you understand the process.

*remove fake gz*
Attachments
debootstrap_xenial.log.gz
(16.44 KiB) Downloaded 130 times
debootstrap_stretch.log.gz
(12.46 KiB) Downloaded 120 times
debootstrap_jessie.log.gz
(16.85 KiB) Downloaded 122 times

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#153 Post by rufwoof »

Last edited by rufwoof on Thu 13 Jul 2017, 18:37, edited 1 time in total.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#154 Post by musher0 »

belham2 wrote:
musher0 wrote:Thanks, dancytron.
Hi Musher,

Last evening, I finally got it to work, ending up with an openbox, ROX desktop. But the number of things & hoops I had to jump through to get it to work, the linked blog (and our dear Anikin) conveniently leaves out. Honestly, it is nowhere near Toni's & Fred's excellent documentation--which I've also done following their tips and both were way easier. Ultimately, though, the telling sign about the blog (and Anikin's links) is this: having to, lol, link back to Debian itself on how to make things actually work. Sh!t, if I didn't know Debian so well by now, I would have given up.

Don't worry, Musher, this method is about as ready for prime time (for murga-land here) as the Rolling Stones are ready to retire. In other words,never. :lol: ---unless our dear, beloved Anikin (and/or someone else) puts some documentation & organization effort into it & gets it down here on Murga.
Thanks, belham2. It's nice not to feel alone in the dark! :twisted:

Another detail: I read in the original Monteil ReadMe.txt that his script is
for Sage Debian? That's pretty old, right?

I grumbled a lot about WOOF-CE -- I'm a grouch at heart :lol: --
but I'm going back to it!

Sort of off-topic: everybody please notice that BarryK is back in the fray
with a nice-looking, improved, Xerus Quirky 8.1.94:
http://murga-linux.com/puppy/viewtopic. ... ost#960658

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

#155 Post by emil »

Hi Guys,

don't necromance this old thread. Download links in first posts are broken, and the code bitrots since several years. Debian Live is dead and hijacked - to wrap it up:
move on, let CAT rest in peace.
Cheers and take care ...

Post Reply