diff options
author | Iru Cai <mytbk920423@gmail.com> | 2020-06-29 14:30:42 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2021-03-30 13:08:45 +0800 |
commit | ac5acd6d0dd40655335b62ecc33db0937a322f6c (patch) | |
tree | 7d5ce24ca3cc5543621cc736df334337043006e4 /distro/arch/meta | |
parent | a42acb2e3d3f823e8db5725eb543e74e9cae32bc (diff) | |
download | liveusb-builder-ac5acd6d0dd40655335b62ecc33db0937a322f6c.tar.xz |
initial meta distro support
Now we support using an iso file directly other than first downloading
it, this is very useful for iso files that update frequently (like
openSUSE) or custom iso files.
Diffstat (limited to 'distro/arch/meta')
-rw-r--r-- | distro/arch/meta | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/distro/arch/meta b/distro/arch/meta new file mode 100644 index 0000000..5f375ed --- /dev/null +++ b/distro/arch/meta @@ -0,0 +1,20 @@ +entry() { + TITLE="$ISONAME" + KERNEL=/liveusb-kernel/$KEYWORD/x86_64/vmlinuz + INITRD=(/liveusb-kernel/$KEYWORD/intel_ucode.img + /liveusb-kernel/$KEYWORD/amd_ucode.img + /liveusb-kernel/$KEYWORD/x86_64/archiso.img) + OPTION="archisodevice=/dev/disk/by-uuid/$UUID archisobasedir=liveusb-data/$KEYWORD" + X64=y +} + +install_live() { + mount_iso + install -d "$DATADIR/$KEYWORD" "$KERNELDIR/$KEYWORD" + cp -r "$ISOMNT/arch/x86_64" "$DATADIR/$KEYWORD/" + cp -r "$ISOMNT/arch/boot/x86_64" "$KERNELDIR/$KEYWORD/" + cp "$ISOMNT/arch/boot/"*.img "$KERNELDIR/$KEYWORD/" + umount_iso +} + +entries=(entry) |