diff options
author | Iru Cai <mytbk920423@gmail.com> | 2017-03-18 10:44:38 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2017-03-18 10:44:38 +0800 |
commit | d4c06b7c6405746fd81697736bce12406a32cac7 (patch) | |
tree | f3bd768b4e32af64fa46c4bdb2d7df7c5b788a3b /distro | |
parent | 3a9c2f9e8bcd7db1c1d86a2e5995cc8a7228ad49 (diff) | |
download | liveusb-builder-d4c06b7c6405746fd81697736bce12406a32cac7.tar.xz |
distro: add CentOS
Based on Fedora and https://wiki.archlinux.org/index.php/Multiboot_USB_drive#CentOS.
Diffstat (limited to 'distro')
-rw-r--r-- | distro/centos/7.3.1611/entry | 2 | ||||
-rw-r--r-- | distro/centos/7.3.1611/install.sh | 2 | ||||
-rw-r--r-- | distro/centos/7.3.1611/isoinfo | 7 | ||||
-rw-r--r-- | distro/centos/distroinfo | 2 | ||||
-rw-r--r-- | distro/centos/entry.common | 5 | ||||
-rw-r--r-- | distro/centos/install.sh | 8 |
6 files changed, 26 insertions, 0 deletions
diff --git a/distro/centos/7.3.1611/entry b/distro/centos/7.3.1611/entry new file mode 100644 index 0000000..eaa09a6 --- /dev/null +++ b/distro/centos/7.3.1611/entry @@ -0,0 +1,2 @@ +version=7.3.1611 +source distro/centos/entry.common diff --git a/distro/centos/7.3.1611/install.sh b/distro/centos/7.3.1611/install.sh new file mode 100644 index 0000000..57dc865 --- /dev/null +++ b/distro/centos/7.3.1611/install.sh @@ -0,0 +1,2 @@ +version=7.3.1611 +source distro/centos/install.sh diff --git a/distro/centos/7.3.1611/isoinfo b/distro/centos/7.3.1611/isoinfo new file mode 100644 index 0000000..47bb48c --- /dev/null +++ b/distro/centos/7.3.1611/isoinfo @@ -0,0 +1,7 @@ +ISONAME="$DISTRONAME 7.3.1611 Minimal" +ISOURL=7.3.1611/isos/x86_64/CentOS-7-x86_64-Minimal-1611.iso +SHA256=27bd866242ee058b7a5754e83d8ee8403e216b93d130d800852a96f41c34d86a + +mirrorlist=( +https://mirrors.tuna.tsinghua.edu.cn/centos +) diff --git a/distro/centos/distroinfo b/distro/centos/distroinfo new file mode 100644 index 0000000..43088e6 --- /dev/null +++ b/distro/centos/distroinfo @@ -0,0 +1,2 @@ +DISTRONAME='CentOS' +KEYWORD='centos' diff --git a/distro/centos/entry.common b/distro/centos/entry.common new file mode 100644 index 0000000..aafce88 --- /dev/null +++ b/distro/centos/entry.common @@ -0,0 +1,5 @@ +TITLE="CentOS $version x86_64" +KERNEL=/liveusb-kernel/centos/$version/vmlinuz +INITRD=/liveusb-kernel/centos/$version/initrd.img +OPTION="noeject inst.stage2=hd:UUID=$UUID:/liveusb-data/centos/$ISOFILE" +X64=y diff --git a/distro/centos/install.sh b/distro/centos/install.sh new file mode 100644 index 0000000..a06d388 --- /dev/null +++ b/distro/centos/install.sh @@ -0,0 +1,8 @@ +install_live() { + mount_iso + install -d "$DATADIR/centos/" "$KERNELDIR/centos/$version" + cp "isofiles/$ISOFILE" "$DATADIR/centos/" + cp "$ISOMNT/images/pxeboot/vmlinuz" "$ISOMNT/images/pxeboot/initrd.img" "$KERNELDIR/centos/$version" + umount_iso +} + |