Script to update kernel and create new iso
Posted: Wed 16 May 2012, 21:46
Igudeler has made a script to automatic compile and build new kernel package for puppy here:
http://murga-linux.com/puppy/viewtopic.php?t=78385
with this script you can make a kernel package to install in a full hd installation puppy;
thanks to Pemasu i discovered this script, so i edited it to automatic build new iso with the new kernel;
i have also separate a script to only build the iso in a second time after kernel compiled, so you can make changes and easily build a new iso without boot and use remaster tool.
However the new iso can have lot of bugs with programs and system.
The script:
download kernel
make patches
compile kernel
create source sfs
create pet package kernel
create pet package headers
create new puppy iso (edit sfs and update initrd to boot new iso)
I put a install.txt for help into the folder you extract:
instructions:
add the original puppy iso (the same you use to compile, ex: lupu-525.iso) on this directory with the scripts,
edit the variables on 'set.txt'
if you need add patches for kernel on 'patch' folder
DOTconfig is the config kernel (used to compile kernel 3.3.5 with patches ubuntu precise) for compiling, you can edit or change it
open terminal on this directory and digit:
./buid-all.sh
the script download the kernel from set variable, aufs, patch, create new kernel and new updated personal iso (from set.txt),
the only question is to edit (press '1' and ENTER) or left the kernel config with this directory ( press 's' and ENTER);
a 'bark' sound notice you to make a action.
you can create a new initrd, sfs and make a new iso a second time (after compilated new kernel with build-all.sh script) with
./build-iso.sh
(delete first old 'remasterinit - remastersfs - remasteriso' and edit variables on this script);
you can also add and remove programs editing remasterinit and remastersfs folders, so create a new updated iso with script
./build-iso.sh
(you must have previously created 'remasterinit - remastersfs - remasteriso' from 'build-all.sh' or 'build-initrd-sfs.sh' , rename old ***.iso on newiso directory).
Is for testing, you don't need to recompile the kernel without a valid reason, you can use remaster utility on puppy menu.
Here a new iso i made with this script.
http://murga-linux.com/puppy/viewtopic.php?p=627968#627968
Here the tar with the scripts:
http://murga-linux.com/puppy/viewtopic.php?t=78385
with this script you can make a kernel package to install in a full hd installation puppy;
thanks to Pemasu i discovered this script, so i edited it to automatic build new iso with the new kernel;
i have also separate a script to only build the iso in a second time after kernel compiled, so you can make changes and easily build a new iso without boot and use remaster tool.
However the new iso can have lot of bugs with programs and system.
The script:
download kernel
make patches
compile kernel
create source sfs
create pet package kernel
create pet package headers
create new puppy iso (edit sfs and update initrd to boot new iso)
I put a install.txt for help into the folder you extract:
instructions:
add the original puppy iso (the same you use to compile, ex: lupu-525.iso) on this directory with the scripts,
edit the variables on 'set.txt'
if you need add patches for kernel on 'patch' folder
DOTconfig is the config kernel (used to compile kernel 3.3.5 with patches ubuntu precise) for compiling, you can edit or change it
open terminal on this directory and digit:
./buid-all.sh
the script download the kernel from set variable, aufs, patch, create new kernel and new updated personal iso (from set.txt),
the only question is to edit (press '1' and ENTER) or left the kernel config with this directory ( press 's' and ENTER);
a 'bark' sound notice you to make a action.
you can create a new initrd, sfs and make a new iso a second time (after compilated new kernel with build-all.sh script) with
./build-iso.sh
(delete first old 'remasterinit - remastersfs - remasteriso' and edit variables on this script);
you can also add and remove programs editing remasterinit and remastersfs folders, so create a new updated iso with script
./build-iso.sh
(you must have previously created 'remasterinit - remastersfs - remasteriso' from 'build-all.sh' or 'build-initrd-sfs.sh' , rename old ***.iso on newiso directory).
Is for testing, you don't need to recompile the kernel without a valid reason, you can use remaster utility on puppy menu.
Here a new iso i made with this script.
http://murga-linux.com/puppy/viewtopic.php?p=627968#627968
Here the tar with the scripts: