How to make a ISO?

jianhui

New Member
Oct 19, 2015
12
0
1
Hi,
I want edit a ISO image ,and make a new boot ISO image.
For example ,I mount a iso image ,and copy all of files, then i want rebuild a new boot ISO image with these files .
How to do it ? use the genisoimage command?
Thanks!
 
Last edited:
Should with this:



cat 1_prepare_new_iso.sh
Code:
#!/bin/bash


if [ -z $1 ]; then
echo "You must provide a workdir"
exit
fi


if [ ! -d $1 ]; then
echo "Workdir does not exist"
exit
fi


if [[ "$1" != /* ]]; then
echo "You must provide a absolute path to workdir"
exit
fi


if [ -z $2 ]; then
echo "You must provide a iso file"
exit
fi


if [ ! -f $2 ]; then
echo "ISO file $1 does not exist"
exit
fi


sudo uck-remaster-clean $1
sudo uck-remaster-unpack-iso $2 $1
sudo uck-remaster-unpack-rootfs $1

cat 2_chroot_iso.sh
Code:
#!/bin/bash


if [ -z $1 ]; then
echo "You must provide a workdir"
exit
fi


if [ ! -d $1 ]; then
echo "Workdir does not exist"
exit
fi


if [[ "$1" != /* ]]; then
echo "You must provide a absolute path to workdir"
exit
fi


sudo uck-remaster-chroot-rootfs $1

cat 3_finalize_iso.sh
Code:
#!/bin/bash


if [ -z $1 ]; then
echo "You must provide a workdir"
exit
fi


if [ ! -d $1 ]; then
echo "Workdir does not exist"
exit
fi


if [[ "$1" != /* ]]; then
echo "You must provide a absolute path to workdir"
exit
fi


if [ -z $2 ]; then
echo "You must provide a iso file name"
exit
fi


sudo uck-remaster-pack-rootfs $1
sudo uck-remaster-pack-iso $2 $1 -h -g



UCK is from Ubuntu.

Best Regards.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!