Many questions to live-build

2015-08-18 Thread Hans
Hello folks,

I am running live-build for several  targets (debian-live, kali linux and some 
other). I read into the manual, but there are some questions, the manual could 
not solve. Maybe you can help. 

What I want to do is the following:

I want to download and create a chroot for several architectures. It is 
important for me, that I can do this step-by-step.
The command "lb build" does everything in one step, and I cannot control the 
single steps.

It should do in this way: 

Step 1:
The first step should download and unpack all the packages and creating the 
chroot. Then it should stop!

Step 2:
I want to dive into the chroot and want to do some changes. This works already 
with the chroot command. When I have finished all my settings and changes I 
want to do Step 3.

Step 3: 
My changed chroot should now be built and it should now an ISO beeing created.


Ok, now to my questions:

1. Which commands must I use for Step 1, that the chroot is build and then 
stops?


2. Which command must I use for Step 2, to create the bootable ISO?


3. I am running live-build in an amd64-environment. But I want to build the 
livefile not only for  amd64, but for i386 and arm as well. The command 
lb clean --purge makes my system clean, and the switch -a arm or -a i386 tells 
what architecture it has to be built. Can I build for any archjitecture on the 
same machine?


4. I am using apt-cacher-ng, to prevent from repeating downloads at each 
build. Is there a way, to use the same live-build folder for different 
architectures (i.e. by forcing the chroot into subfolders)


Thank you very much for reading this and for your help!

Best regards

Hans
  

 

 



Re: Questions to live-build

2015-01-24 Thread mrr

On 24/01/2015 13:30, Hans wrote:

Hello list,

I am looking for some answers, the live-build I could not find in the live-
build documentation. I hope, someone very experienced can help me.

The situation:
I created a live-build structure and with "lb config" and "lb build" I can
build an ISO-image. That is working well.

Question 1:
I want to change the chroot. For this, I chroot into the chroot and now I can
do my changes I want to do (i.e. change configs or add packages whatever).

How can I build a new ISO-image without the process of cleaning the chroot and
avoid unpacking of all the packages again and again? Is "lb clean" necessary?
"lb build" is doing that every time!



If I understand, created files inside the chroot are keeped upon reboot 
but not installed packets ?
If so (seems weird though), cleaning the chroot would just be a matter 
of executing a "remove" script when going to runlevel 0 or 6 (or whatever!)
Keeping packets is more challenging. Could you mount your iso image on / 
so as to work on a physical partition rather than a ramfs?
But I guess it wouldn't be as simple as the iso dynamically loads a 
valid file system on boot (I think). You could see the situation with a

$ df /

What about changing completely the strategy i.e.:
- boot on the iso.
- installation of packets
(- purging of unwanted files)
- eventually installing a boot loader (the iso obviously has one but the 
working file-system may not). I'm not sure it would work so I would do 
that in a second time, and the first time you boot with the new iso, you 
may use an extern tool.

- copying the entire root tree on some other support.
- creating an iso with the file generated above.

The difficulty might be to copy a file-system which is in use.

But I'm sure not a "very experienced" one so other answers will give you 
some more valuable information, not double hypothesis of what your 
question really is and my answer.




Question 2:
During build I see tons of "lb" commands, started by "lb build". Is there an
explanation of all the "lb"-commands, so that it might be possible for me,
doing a step-by-step build, i.e. giving me the possibilty to restart at a
certain point, when something crashes?

At the moment, when I am building a live-system, and it crashes after several
hours because of a dmaged package or something else, I have to fix it, then
restart again and wait agian for hours. I hope, there is a better solution.



If building an iso works as I said above (or otherwise) you would have 
your backup and a new starting point but it would not prevent the crash!
Crashes are quite seldom on Linux (well, for sure on my wheezy at 
least!), anyway the best idea would be to find the cause and fix it.

Maybe there is a crash dump somewhere (that stays across reboots)?
Does it crashes on both distributions?
Does it crashes if you don't install anything (to test that, you would 
need time, at least twice the mean time between failures, maybe a night) ?




I am building mainly debian-live and kali-linux.

Thank you for every hints!

Best regards

Hans





Just ideas man, just ideas! As I said, I'm not a professional in that field!

--
mrr


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: https://lists.debian.org/54c3aae8$0$2334$426a3...@news.free.fr



Questions to live-build

2015-01-24 Thread Hans
Hello list,

I am looking for some answers, the live-build I could not find in the live-
build documentation. I hope, someone very experienced can help me.

The situation:
I created a live-build structure and with "lb config" and "lb build" I can 
build an ISO-image. That is working well.

Question 1:
I want to change the chroot. For this, I chroot into the chroot and now I can 
do my changes I want to do (i.e. change configs or add packages whatever).

How can I build a new ISO-image without the process of cleaning the chroot and 
avoid unpacking of all the packages again and again? Is "lb clean" necessary? 
"lb build" is doing that every time!


Question 2:
During build I see tons of "lb" commands, started by "lb build". Is there an 
explanation of all the "lb"-commands, so that it might be possible for me, 
doing a step-by-step build, i.e. giving me the possibilty to restart at a 
certain point, when something crashes?

At the moment, when I am building a live-system, and it crashes after several 
hours because of a dmaged package or something else, I have to fix it, then 
restart again and wait agian for hours. I hope, there is a better solution.


I am building mainly debian-live and kali-linux.

Thank you for every hints!

Best regards

Hans



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/2129629.fFie7LNnfs@protheus2