summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-06-27 12:22:43 +0800
committerIru Cai <mytbk920423@gmail.com>2018-06-27 12:22:43 +0800
commit91093d66ff6442c50a555fae2ce9882209c18caa (patch)
tree64c34a044e87db8298ff943e4e317004ba845eb9
parentb35484283a5ea7ca966b9bd04fa183e6cb72f27a (diff)
downloadliveusb-builder-91093d66ff6442c50a555fae2ce9882209c18caa.tar.xz
distro: add openSUSE leap 15
-rw-r--r--distro/opensuse/15/entry3
-rw-r--r--distro/opensuse/15/install.sh2
-rw-r--r--distro/opensuse/15/isoinfo8
-rw-r--r--distro/opensuse/distroinfo2
-rw-r--r--distro/opensuse/entry.common5
-rw-r--r--distro/opensuse/install.sh8
6 files changed, 28 insertions, 0 deletions
diff --git a/distro/opensuse/15/entry b/distro/opensuse/15/entry
new file mode 100644
index 0000000..6c0f040
--- /dev/null
+++ b/distro/opensuse/15/entry
@@ -0,0 +1,3 @@
+version=15
+CDLABEL=openSUSE_Leap_15.0_KDE_Live
+source distro/opensuse/entry.common
diff --git a/distro/opensuse/15/install.sh b/distro/opensuse/15/install.sh
new file mode 100644
index 0000000..bbf620b
--- /dev/null
+++ b/distro/opensuse/15/install.sh
@@ -0,0 +1,2 @@
+version=15
+source distro/opensuse/install.sh
diff --git a/distro/opensuse/15/isoinfo b/distro/opensuse/15/isoinfo
new file mode 100644
index 0000000..7ca2bdd
--- /dev/null
+++ b/distro/opensuse/15/isoinfo
@@ -0,0 +1,8 @@
+ISONAME="$DISTRONAME 15 KDE Live"
+ISOURL=distribution/leap/15.0/live/openSUSE-Leap-15.0-KDE-Live-x86_64-Snapshot17.9-Media.iso
+SHA256=e5b8c9ae1dd596e8fc5cda89d616cc6e8f5aecccba668d198a8c2d3b19175e9e
+
+mirrorlist=(
+https://download.opensuse.org
+https://mirrors.tuna.tsinghua.edu.cn/opensuse
+)
diff --git a/distro/opensuse/distroinfo b/distro/opensuse/distroinfo
new file mode 100644
index 0000000..155bdc2
--- /dev/null
+++ b/distro/opensuse/distroinfo
@@ -0,0 +1,2 @@
+DISTRONAME='OpenSUSE'
+KEYWORD='opensuse'
diff --git a/distro/opensuse/entry.common b/distro/opensuse/entry.common
new file mode 100644
index 0000000..c52becb
--- /dev/null
+++ b/distro/opensuse/entry.common
@@ -0,0 +1,5 @@
+TITLE="OpenSUSE $version x86_64"
+KERNEL=/liveusb-kernel/opensuse/$version/linux
+INITRD=/liveusb-kernel/opensuse/$version/initrd
+OPTION="root=live:CDLABEL=$CDLABEL iso-scan/filename=liveusb-data/opensuse/$ISOFILE"
+X64=y
diff --git a/distro/opensuse/install.sh b/distro/opensuse/install.sh
new file mode 100644
index 0000000..d24c9db
--- /dev/null
+++ b/distro/opensuse/install.sh
@@ -0,0 +1,8 @@
+install_live() {
+ mount_iso
+ install -d "$DATADIR/opensuse/" "$KERNELDIR/opensuse/$version"
+ cp "$ISOMNT/boot/x86_64/loader"/{linux,initrd} \
+ "$KERNELDIR/opensuse/$version"
+ umount_iso
+ cp "$ISOPATH/$ISOFILE" "$DATADIR/opensuse/"
+}