summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-01-03 02:38:11 +0000
committerV3n3RiX <venerix@rogentos.ro>2016-01-03 02:38:11 +0000
commitb4c77cf1367b387d5fb976b945a9686b73e0c07c (patch)
treef41d3383f10e3f675b12d3617d6415c752ff6354
parentcc6ca27f68ed3534960ec1a61a4132be7aa9715f (diff)
autogenerate live initramfs during iso creation
-rwxr-xr-xiso3210
-rwxr-xr-xiso6410
2 files changed, 16 insertions, 4 deletions
diff --git a/iso32 b/iso32
index 46fb501..4ccf3b1 100755
--- a/iso32
+++ b/iso32
@@ -17,12 +17,18 @@ makeisox86 () {
mkdir -p "$isoliveosdirx86"
mkdir -p "$isosupersquashdirx86"
mkdir -p "$isolivesqfsdirx86"
- # mount && copy our core stage 4 image
+ # mount && copy core stage 4 image
mount -t squashfs "$chrootx86" "$isostagingdirx86"
mount -t ext4 ""$isosyncdirx86".img" "$isosyncdirx86"
rsync -aHAXr --progress "$isostagingdirx86/" "$isosyncdirx86/"
- # copy our kernel into cdroot
+ # copy kernel into cdroot
cp -avx ""$isosyncdirx86"/boot/"$isokernelnamex86"" ""$isorootdirx86"/boot/vmlinuz"
+ # generate live initramfs
+ isostartx86
+ isoramfsx86
+ isostopx86
+ # copy live initramfs
+ mv ""$isosyncdirx86"/boot/"$isoramfsname"" ""$isorootdirx86"/boot/initrd"
# configure portage && give up control for package / desktop environment installation
isostartx86
isooverlaysx86
diff --git a/iso64 b/iso64
index 5f4306a..563dd05 100755
--- a/iso64
+++ b/iso64
@@ -18,12 +18,18 @@ makeisox64 () {
mkdir -p "$isoliveosdirx64"
mkdir -p "$isosupersquashdirx64"
mkdir -p "$isolivesqfsdirx64"
- # mount && copy our core stage 4 image
+ # mount && copy core stage 4 image
mount -t squashfs "$chrootx64" "$isostagingdirx64"
mount -t ext4 ""$isosyncdirx64".img" "$isosyncdirx64"
rsync -aHAXr --progress "$isostagingdirx64/" "$isosyncdirx64/"
- # copy our kernel into cdroot
+ # copy kernel into cdroot
cp -avx ""$isosyncdirx64"/boot/"$isokernelnamex64"" ""$isorootdirx64"/boot/vmlinuz"
+ # generate live initramfs
+ isostartx64
+ isoramfsx64
+ isostopx64
+ # copy live initramfs into cdroot
+ mv ""$isosyncdirx64"/boot/"$isoramfsname"" ""$isorootdirx64"/boot/initrd"
# configure portage && give up control for package / desktop environment installation
isostartx64
isooverlaysx64