diff --git a/0005-support-usb-flash-drive-mode.patch b/0005-support-usb-flash-drive-mode.patch new file mode 100644 index 0000000000000000000000000000000000000000..fb7c8ed1284a180bc49b4a9d1436cecb810dbc03 --- /dev/null +++ b/0005-support-usb-flash-drive-mode.patch @@ -0,0 +1,40 @@ +From bb1688a8e8c8dc18ccd3c2ed778a0c5c0bd52633 Mon Sep 17 00:00:00 2001 +From: wangchong1995924 <15229716099@163.com> +Date: Wed, 26 Jan 2022 14:13:00 +0800 +Subject: [PATCH 1/1] support usb flash drive mode + +--- + isomaker/iso.sh | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/isomaker/iso.sh b/isomaker/iso.sh +index b15b394..379c538 100755 +--- a/isomaker/iso.sh ++++ b/isomaker/iso.sh +@@ -39,6 +39,7 @@ function gen_standard_iso() + if [ "$ARCH" == "x86_64" ]; then + mkisofs -R -J -T -r -l -d -joliet-long -allow-multidot -allow-leading-dots -no-bak -V "${RELEASE_NAME}" -o "${OUTPUT_DIR}/${STANDARD_ISO_NAME}" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot "${BUILD}"/iso + [ $? != 0 ] && return 1 ++ isohybrid -u "${OUTPUT_DIR}/${STANDARD_ISO_NAME}" + elif [ "$ARCH" == "aarch64" ]; then + mkisofs -R -J -T -r -l -d -joliet-long -allow-multidot -allow-leading-dots -no-bak -V "${RELEASE_NAME}" -o "${OUTPUT_DIR}/${STANDARD_ISO_NAME}" -e images/efiboot.img -no-emul-boot "${BUILD}"/iso + [ $? != 0 ] && return 1 +@@ -75,6 +76,7 @@ function gen_everything_iso() + if [ "$ARCH" == "x86_64" ]; then + mkisofs -R -J -T -r -l -d -joliet-long -allow-multidot -allow-leading-dots -no-bak -V "${RELEASE_NAME}" -o /result/"${EVE_ISO_NAME}" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot "${BUILD}"/iso + [ $? != 0 ] && return 1 ++ isohybrid -u /result/"${EVE_ISO_NAME}" + elif [ "$ARCH" == "aarch64" ]; then + mkisofs -R -J -T -r -l -d -joliet-long -allow-multidot -allow-leading-dots -no-bak -V "${RELEASE_NAME}" -o /result/"${EVE_ISO_NAME}" -e images/efiboot.img -no-emul-boot "${BUILD}"/iso + [ $? != 0 ] && return 1 +@@ -126,6 +128,7 @@ function gen_netinst_iso() + if [ "$ARCH" == "x86_64" ]; then + mkisofs -R -J -T -r -l -d -joliet-long -allow-multidot -allow-leading-dots -no-bak -V "${RELEASE_NAME}" -o /result/"${NETINST_ISO_NAME}" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot "${BUILD}"/iso + [ $? != 0 ] && return 1 ++ isohybrid -u /result/"${NETINST_ISO_NAME}" + elif [ "$ARCH" == "aarch64" ]; then + mkisofs -R -J -T -r -l -d -joliet-long -allow-multidot -allow-leading-dots -no-bak -V "${RELEASE_NAME}" -o /result/"${NETINST_ISO_NAME}" -e images/efiboot.img -no-emul-boot "${BUILD}"/iso + fi +-- +2.27.0 + diff --git a/oemaker.spec b/oemaker.spec index 964a0ea701ba5f323c87b4a0aae723af94935283..e928e3ebe042359d8eb3b75a9e5890ddeeab947f 100644 --- a/oemaker.spec +++ b/oemaker.spec @@ -11,7 +11,7 @@ Summary: a duilding tool for DVD ISO making and ISO cutting License: Mulan PSL v2 Group: System/Management Version: 2.0.0 -Release: 13 +Release: 14 BuildRoot: %{_tmppath}/%{name} Source: https://gitee.com/openeuler/oemaker/repository/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz @@ -28,6 +28,7 @@ Patch0001: 0001-rename-source-iso.patch Patch0002: 0002-bugfix-I3QY98.patch Patch0003: 0003-change-for-edge-computing.patch Patch0004: 0004-bugfix-I3OGUT.patch +Patch0005: 0005-support-usb-flash-drive-mode.patch %description a building tool for DVD ISO making and ISO cutting @@ -129,6 +130,11 @@ rm -rf %{buildroot} rm -rf $RPM_BUILD_DIR/%{name} %changelog +* Sun Jan 30 2022 wang chong <952173335@qq.com> - 2.0.0-14 +- ID:NA +- SUG:NA +- DESC: support usb flash drive mode + * Fri Jan 21 2022 zhang_xubo <2578876417@qq.com> - 2.0.0-13 - ID:NA - SUG:NA