summaryrefslogtreecommitdiff
path: root/libvasile
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-12-20 21:44:54 +0000
committerV3n3RiX <venerix@rogentos.ro>2015-12-20 21:44:54 +0000
commit0433ee34e218c81821b5ae96dc6182c2bc1cbc42 (patch)
tree495495e7e810fd89f355650f8ab862271e4dbe18 /libvasile
parent9a0aa9d18c115f200b60a64f956a8eafa5b71843 (diff)
iso creation functions...not all of them, not yet complete
Diffstat (limited to 'libvasile')
-rwxr-xr-xlibvasile80
1 files changed, 80 insertions, 0 deletions
diff --git a/libvasile b/libvasile
index 8f9e645..5a9b450 100755
--- a/libvasile
+++ b/libvasile
@@ -246,3 +246,83 @@ chrootx86 () {
echo -e ""
linux32 chroot "$overlaydir" su - "$chrootuser"
}
+
+# x64 specific iso functions
+
+isostartx64 () {
+ mount -o bind packages "$livedirx64"/usr/portage/packages
+ mount -o bind targets "$livedirx64"/mnt
+ mount -t proc proc "$livedirx64"/proc
+ mount -t sysfs sysfs "$livedirx64"/sys
+ mount -t devtmpfs -o relatime,size=3055348k,nr_inodes=763837,mode=755 none "$livedirx64"/dev
+ mount -t devpts -o nosuid,noexec,relatime,gid=5,mode=620 none "$livedirx64"/dev/pts
+ mount -t tmpfs -o nosuid,nodev none "$livedirx64"/dev/shm
+ mount -t tmpfs -o nosuid,nodev,noexec none "$livedirx64"/tmp
+}
+
+isooverlaysx64 () {
+ echo "injecting "$releasename" main overlay into x64 environment"
+ sleep 1
+ chroot "$livedirx64" su - "$isouser" -c "$isomainoverlay"
+ echo "injecting "$releasename" "$releasetarget" overlay into x64 environment"
+ sleep 1
+ chroot "$livedirx64" su - "$isouser" -c "$isoaddonoverlay"
+}
+
+isobuildsystemx64 () {
+ echo "injecting "$releasename" x64 buildsystem && setting up portage"
+ echo ""
+ sleep 1
+ for cmd in "$isobuildgit" "$isoportageconfig" "$isomakeconfx64" "$isoprofile" "$isoenvupdate" ; do
+ chroot "$livedirx64" su - "$isouser" -c "$cmd"
+ done
+}
+
+isochrootx64 () {
+ echo -e ""
+ echo -e "DROPPING YOU TO A ROOT SHELL INTO ISO ENVIRONMENT"
+ echo -e "INSTALL APPS & TARGETS & DES YOU WANT INSIDE ISO"
+ echo -e "EXIT WHEN YOU'RE DONE AND I'LL CREATE THE IMAGE"
+ echo -e ""
+ chroot "$livedirx64" su - "$isouser"
+}
+
+# x86 specific iso functions
+
+isostartx86 () {
+ mount -o bind packages "$livedirx86"/usr/portage/packages
+ mount -o bind targets "$livedirx86"/mnt
+ mount -t proc proc "$livedirx86"/proc
+ mount -t sysfs sysfs "$livedirx86"/sys
+ mount -t devtmpfs -o relatime,size=3055348k,nr_inodes=763837,mode=755 none "$livedirx86"/dev
+ mount -t devpts -o nosuid,noexec,relatime,gid=5,mode=620 none "$livedirx86"/dev/pts
+ mount -t tmpfs -o nosuid,nodev none "$livedirx86"/dev/shm
+ mount -t tmpfs -o nosuid,nodev,noexec none "$livedirx86"/tmp
+}
+
+isooverlaysx86 () {
+ echo "injecting "$releasename" main overlay into x86 environment"
+ sleep 1
+ linux32 chroot "$livedirx86" su - "$isouser" -c "$isomainoverlay"
+ echo "injecting "$releasename" "$releasetarget" overlay into x86 environment"
+ sleep 1
+ linux32 chroot "$livedirx86" su - "$isouser" -c "$isoaddonoverlay"
+}
+
+isobuildsystemx86 () {
+ echo "injecting "$releasename" x86 buildsystem && setting up portage"
+ echo ""
+ sleep 1
+ for cmd in "$isobuildgit" "$isoportageconfig" "$isomakeconfx86" "$isoprofile" "$isoenvupdate" ; do
+ linux32 chroot "$livedirx86" su - "$isouser" -c "$cmd"
+ done
+}
+
+isochrootx86 () {
+ echo -e ""
+ echo -e "DROPPING YOU TO A ROOT SHELL INTO ISO ENVIRONMENT"
+ echo -e "INSTALL APPS & TARGETS & DES YOU WANT INSIDE ISO"
+ echo -e "EXIT WHEN YOU'RE DONE AND I'LL CREATE THE IMAGE"
+ echo -e ""
+ linux32 chroot "$livedirx86" su - "$isouser"
+}