summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-01-01 20:53:37 +0000
committerV3n3RiX <venerix@rogentos.ro>2016-01-01 20:53:37 +0000
commit1ac0308c39636711be8ec532e0ec19d43e61ffa3 (patch)
treeb4042b8a209e32604bf470673c31d7f9a42979c5
parenta54f62fd7aed5fd8a51877103ca63d01fc28cb53 (diff)
prepare iso layout to boot with dracut
-rwxr-xr-xlibvasile12
-rwxr-xr-xvasile10
2 files changed, 18 insertions, 4 deletions
diff --git a/libvasile b/libvasile
index f9d2fc7..c7da993 100755
--- a/libvasile
+++ b/libvasile
@@ -289,6 +289,12 @@ isobuildsystemx64 () {
done
}
+isoramfsx64 () {
+ echo "generating live initramfs"
+ echo ""
+ chroot "$livedirx64" su - "$isouser" -c "$isoramfs"
+}
+
isochrootx64 () {
echo -e ""
echo -e "DROPPING YOU TO A ROOT SHELL INTO ISO ENVIRONMENT"
@@ -340,6 +346,12 @@ isobuildsystemx86 () {
done
}
+isoramfsx86 () {
+ echo "generating live initramfs"
+ echo ""
+ linux32 chroot "$livedirx86" su - "$isouser" -c "$isoramfs"
+}
+
isochrootx86 () {
echo -e ""
echo -e "DROPPING YOU TO A ROOT SHELL INTO ISO ENVIRONMENT"
diff --git a/vasile b/vasile
index 3aeae8c..08f99d7 100755
--- a/vasile
+++ b/vasile
@@ -40,6 +40,8 @@ export local isobuildgit="cd /opt && git clone https://gitlab.com/"$releasename"
export local isoportageconfig="ln -sf /opt/"$releasename"-build/conf/intel/portage /etc/portage"
export local isoenvupdate="/usr/sbin/env-update && . /etc/profile"
export local isoprofile="eselect profile set 1"
+export local isoramfs="dracut --no-hostonly --add "dmsquash-live pollcdrom" --kver "$kernelver""
+export local ramfsname="initramfs-"$kernelver".img"
# x64 specific build variables
@@ -59,9 +61,9 @@ export local mainarchx64="x86_64"
export local isomakeconfx64="ln -sf /opt/"$releasename"-build/conf/intel/portage/make.conf.amd64 /etc/portage/make.conf"
export local isonamex64=""$releasename"-"$releasetarget"-"$releaseversion"-"$mainarchx64""
export local kernelnamex64="kernel-genkernel-"$mainarchx64"-"$kernelver""
-export local ramfsnamex64="initramfs-genkernel-"$mainarchx64"-"$kernelver""
export local coremntx64="/tmp/"$isonamex64""
-export local livedirx64=""$isonamex64"/livecd"
+export local liverootfsx64=""$isonamex64"/CDroot/LiveOS"
+export local syncdirx64=""$isonamex64"/rootfs"
export local isobootx64=""$isonamex64"/boot/grub"
export local isoefibootx64=""$isonamex64"/efi/boot"
@@ -71,9 +73,9 @@ export local mainarchx86="x86"
export local isomakeconfx86="ln -sf /opt/"$releasename"-build/conf/intel/portage/make.conf.x86 /etc/portage/make.conf"
export local isonamex86=""$releasename"-"$releasetarget"-"$releaseversion"-"$mainarchx86""
export local kernelnamex86="kernel-genkernel-"$mainarchx86"-"$kernelver""
-export local ramfsnamex86="initramfs-genkernel-"$mainarchx86"-"$kernelver""
export local coremntx86="/tmp/"$isonamex86""
-export local livedirx86=""$isonamex86"/livecd"
+export local liverootfsx86=""$isonamex86"/CDroot/LiveOS"
+export local syncdirx86=""$isonamex86"/rootfs"
export local isobootx86=""$isonamex86"/boot/grub"
source /usr/lib/vasile/libvasile