First of all, I want to create my live CD using the tools provided by Debian Live (lb config, lb build), and I want to configure the chroot environment to my liking.
Then, once the chroot-environment is set up, I want to apply/install the necessary Clonezilla utilities to my chroot environment. If I can configure Debian Live to install these utilities automatically from the Debian Live config files (i.e. that Clonezilla is installed when I run 'lb build'), that would be the better option.
The reason I ask this, is that I want a simple way to maintain and update my live CDs at a later time. The steps explained at http://clonezilla.org/create_clonezilla_live_from_scratch.php seems much more complicated as I first would have to create a Debian Live ISO (using the create-debian-live script), and then apply the Clonezilla utilities to this ISO using the ocs-gen-iso script. These steps also leaves me with an ISO, when I would rather like to end up with a chroot-environment. This way, I can create an ISO from my chroot-environment whenever I like.
This must be possible in some way, but it does not seem to be documented anywhere.
Thanks for reading.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What http://clonezilla.org/create_clonezilla_live_from_scratch.php describes is a general case. Since we have some patches of live-build/live-boot especially for Clonezilla live, that's why it's more complicated. Especially the Debian Sid changes all the time, it makes this kind of creation more complex…
Anyway, here the environment I created Clonezilla live:
1. Debian Squeeze, with live-build 2.0.12-2.drbl2 and cdebootstrap 0.5.7 installed.
2. Drbl 1.10.41-1drbl and clonezilla 2.3.63-1drbl installed
3. The script for me to create Clonezilla live 1.2.10-* is:
#!/bin/bash
ver=$1
dist="sid"
k_ver="3.0.0-1"
extra_pkgs="firmware-linux-free zfs-fuse live-boot=2.0.15-1.drbl5 live-boot-initramfs-tools=2.0.15-1.drbl5 live-config=2.0.15-1.drbl1 live-config-sysvinit=2.0.15-1.drbl1"
echo "Extra pkgs: $extra_pkgs"
extra_opt=""
&& exit 1
&& k_opt="-k $k_ver"
arch_cpu="686-pae 486 amd64"
for i in $arch_cpu; do
# The created clonezilla live is like: clonezilla-live-1.2.5-4-i686
case "$i" in
486|686*) shown_arch=i${i};; # i486, i686
*) shown_arch=${i};; # amd64
esac
time /opt/drbl/sbin/create-debian-live -o -a "$extra_pkgs" -f $i -l e -b unstable -d $dist -m http://free.nchc.org.tw/debian -s http://free.nchc.org.tw/debian-security -g http://free.nchc.org.tw/drbl-core $k_opt -i ${ver}-$shown_arch $extra_opt
done
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I like to see the original build process for the clonezilla live alternative from scratch.
I understand you have a process to publish a new image weekly, but I'm working from the live usb boot device. It's better to track your changes then create a new distro.
I'm thinking about merging netboot-cd with the clonezilla live usb and virtualbox running from ram.
At this point, I'm using clonezilla-live as a staging point. I boot hardware into clonezilla-live. I login with my the root ssh key and restore the cloned image. I sometimes boot the live centos image and do an install over vnc. When the customer has a network that Is not accessible, I will map the physical hardware and install into a vm.
clonezilla is almost a boot loader for me.
Thank you for your time,
Nick
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That will not work for me. I want to rebuild from sid. They want me to use
netinstall from the Debian repo. I have to account for every change and
edit. It sucks. I have the your image all setup but can't use it at work.
I have been asked to start over and run debootstrap to build the image. I
have to add each package or script from the debian or ubuntu repo. If I
want to use the boot disk I must build if from the repo packages. I love
using your fat 32 usb drive. I just can't download the zip.
OK, so the key point is you can not download Clonezilla live iso or zip and start working on that.
In that case, you first need to have a Debian system, if you can not, then nothing will work.
Anyway, once you have a running Debian system, say Buster, then you can follow https://clonezilla.org/create_clonezilla_live_from_scratch.php
In Step 7, add
deb http://free.nchc.org.tw/drbl-core drbl unstable
Then continue the steps. If you encounter some packages are missing, just install them by "sudo apt-get install... "
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to create a live CD based on Debian Live with Clonezilla installed. I've already read the documentation at http://clonezilla.org/create_clonezilla_live_from_scratch.php, but it does not describe my use case really well.
First of all, I want to create my live CD using the tools provided by Debian Live (lb config, lb build), and I want to configure the chroot environment to my liking.
Then, once the chroot-environment is set up, I want to apply/install the necessary Clonezilla utilities to my chroot environment. If I can configure Debian Live to install these utilities automatically from the Debian Live config files (i.e. that Clonezilla is installed when I run 'lb build'), that would be the better option.
The reason I ask this, is that I want a simple way to maintain and update my live CDs at a later time. The steps explained at http://clonezilla.org/create_clonezilla_live_from_scratch.php seems much more complicated as I first would have to create a Debian Live ISO (using the create-debian-live script), and then apply the Clonezilla utilities to this ISO using the ocs-gen-iso script. These steps also leaves me with an ISO, when I would rather like to end up with a chroot-environment. This way, I can create an ISO from my chroot-environment whenever I like.
This must be possible in some way, but it does not seem to be documented anywhere.
Thanks for reading.
What http://clonezilla.org/create_clonezilla_live_from_scratch.php describes is a general case. Since we have some patches of live-build/live-boot especially for Clonezilla live, that's why it's more complicated. Especially the Debian Sid changes all the time, it makes this kind of creation more complex…
Anyway, here the environment I created Clonezilla live:
1. Debian Squeeze, with live-build 2.0.12-2.drbl2 and cdebootstrap 0.5.7 installed.
2. Drbl 1.10.41-1drbl and clonezilla 2.3.63-1drbl installed
3. The script for me to create Clonezilla live 1.2.10-* is:
#!/bin/bash
ver=$1
dist="sid"
k_ver="3.0.0-1"
extra_pkgs="firmware-linux-free zfs-fuse live-boot=2.0.15-1.drbl5 live-boot-initramfs-tools=2.0.15-1.drbl5 live-config=2.0.15-1.drbl1 live-config-sysvinit=2.0.15-1.drbl1"
echo "Extra pkgs: $extra_pkgs"
extra_opt=""
&& exit 1
&& k_opt="-k $k_ver"
arch_cpu="686-pae 486 amd64"
for i in $arch_cpu; do
# The created clonezilla live is like: clonezilla-live-1.2.5-4-i686
case "$i" in
486|686*) shown_arch=i${i};; # i486, i686
*) shown_arch=${i};; # amd64
esac
time /opt/drbl/sbin/create-debian-live -o -a "$extra_pkgs" -f $i -l e -b unstable -d $dist -m http://free.nchc.org.tw/debian -s http://free.nchc.org.tw/debian-security -g http://free.nchc.org.tw/drbl-core $k_opt -i ${ver}-$shown_arch $extra_opt
done
thank you for the great project.
I like to see the original build process for the clonezilla live alternative from scratch.
I understand you have a process to publish a new image weekly, but I'm working from the live usb boot device. It's better to track your changes then create a new distro.
I'm thinking about merging netboot-cd with the clonezilla live usb and virtualbox running from ram.
At this point, I'm using clonezilla-live as a staging point. I boot hardware into clonezilla-live. I login with my the root ssh key and restore the cloned image. I sometimes boot the live centos image and do an install over vnc. When the customer has a network that Is not accessible, I will map the physical hardware and install into a vm.
clonezilla is almost a boot loader for me.
Thank you for your time,
Nick
Thanks for your feedback.
Did you check this?
https://clonezilla.org/create_clonezilla_live_from_scratch.php
Steven
That will not work for me. I want to rebuild from sid. They want me to use
netinstall from the Debian repo. I have to account for every change and
edit. It sucks. I have the your image all setup but can't use it at work.
On Wed, May 26, 2021, 9:49 AM Steven Shiau steven_shiau@users.sourceforge.net wrote:
What did you meant by "not work"? The same method works for rebuilding from Debian Sid. We use the same method to create Clonezilla live. The doc might be a little out-of-date, but still it should work. I will find some time to update the docs.
BTW, there is an easier way to do that, you can also try it:
https://drbl.org/faq/fine-print.php?path=./2_System/81_add_prog_in_filesystem-squashfs.faq#81_add_prog_in_filesystem-squashfs.faq
Steven
I have been asked to start over and run debootstrap to build the image. I
have to add each package or script from the debian or ubuntu repo. If I
want to use the boot disk I must build if from the repo packages. I love
using your fat 32 usb drive. I just can't download the zip.
Can you tell me how to build it from scratch?
Last edit: Steven Shiau 2021-06-02
OK, so the key point is you can not download Clonezilla live iso or zip and start working on that.
In that case, you first need to have a Debian system, if you can not, then nothing will work.
Anyway, once you have a running Debian system, say Buster, then you can follow
https://clonezilla.org/create_clonezilla_live_from_scratch.php
In Step 7, add
deb http://free.nchc.org.tw/drbl-core drbl unstable
Then continue the steps. If you encounter some packages are missing, just install them by "sudo apt-get install... "
Steven