mirror of
https://github.com/jiangcuo/pve-iso-builder.git
synced 2025-09-13 05:09:05 +00:00
Compare commits
4 Commits
c1de2a8188
...
3a43e23a6c
Author | SHA1 | Date | |
---|---|---|---|
3a43e23a6c | |||
00837b1f41 | |||
7d38a360ff | |||
d4f9d1c268 |
21
EULA
21
EULA
@ -1,3 +1,24 @@
|
|||||||
|
PXVIRT 终端用户许可协议
|
||||||
|
|
||||||
|
使用PXVIRT软件即表示您接受本EULA,并且您已阅读并理解条款和条件。这也适用于代表实体行事的个人。本EULA不提供支持订阅服务作为软件维护、更新和支持的任何权利。请查阅支持订阅协议以了解这些条款和条件。本EULA适用于任何版本的PXVIRT以及任何相关的更新、源代码和结构(程序),无论其交付机制如何。PXVIRT基于Proxmox VE再次开发而成,属于Proxmox VE变体,由Lierfang进行驱动。PXVIRT 遵循 GNU Affero General Public License v3 (AGPLv3) 。PXVIRT包含了很多Proxmox公司的代码,在接受本EULA之前,您还应该遵守Proxmox的EULA。使用本软件即表示您同意以下条款。
|
||||||
|
|
||||||
|
1. 许可。您获得以下权利(需遵守 AGPLv3),运行、复制、修改、分发本软件(包括二进制和源代码形式),通过网络向第三方提供本软件服务时,必须公开相关源代码。本软件包含以下组件:
|
||||||
|
a. Proxmox VE 原始代码(版权归 Proxmox Server Solutions GmbH 所有)。
|
||||||
|
b. PXVIRT 增改部分(版权归 Lierfang(梨儿方) 所有)。
|
||||||
|
c. 第三方软件包,你需要遵守第三方软件包的许可,如果你不同意,则不能安装他们。
|
||||||
|
|
||||||
|
2. 源代码要求。若您通过网络提供本软件服务,必须在服务启动时提供源代码获取途径(如网站链接),公开所有修改后的代码,包括您的自定义部分。
|
||||||
|
|
||||||
|
3. 商标与品牌。PXVIRT基于Proxmox VE,PXVIRT是Lierfang的品牌,Proxmox是Proxmox Server Solutions GmbH的商标,未均授权,均不可使用商标或者logo。
|
||||||
|
|
||||||
|
4. 保修免责。本软件按 "现状" 提供,不提供任何形式的担保,包括但不限于适销性、特定用途适用性或非侵权保证。
|
||||||
|
|
||||||
|
5. 责任限制。对于因使用本软件导致的直接或间接损失(如数据丢失、业务中断),Lierfang 不承担任何责任。最高赔偿金额不超过您支付的软件费用(如有)。
|
||||||
|
|
||||||
|
Copyright © 2022-2025 成都市梨儿方信息技术有限责任公司.
|
||||||
|
|
||||||
|
附Proxmox Server Solutions GmbH的许可协议
|
||||||
|
|
||||||
END USER LICENSE AGREEMENT (EULA) FOR PROXMOX VIRTUAL ENVIRONMENT (PROXMOX VE)
|
END USER LICENSE AGREEMENT (EULA) FOR PROXMOX VIRTUAL ENVIRONMENT (PROXMOX VE)
|
||||||
|
|
||||||
By using Proxmox VE software you agree that you accept this EULA, and that you have read and understand the terms and conditions. This also applies for individuals acting on behalf of entities. This EULA does not provide any rights to Support Subscriptions Services as software maintenance, updates and support. Please review the Support Subscriptions Agreements for these terms and conditions. The EULA applies to any version of Proxmox VE and any related update, source code and structure (the Programs), regardless of the delivery mechanism.
|
By using Proxmox VE software you agree that you accept this EULA, and that you have read and understand the terms and conditions. This also applies for individuals acting on behalf of entities. This EULA does not provide any rights to Support Subscriptions Services as software maintenance, updates and support. Please review the Support Subscriptions Agreements for these terms and conditions. The EULA applies to any version of Proxmox VE and any related update, source code and structure (the Programs), regardless of the delivery mechanism.
|
||||||
|
25
build.sh
25
build.sh
@ -22,7 +22,6 @@ elif [ "$hostarch" == "x86_64" ];then
|
|||||||
grub_prefix="x86_64"
|
grub_prefix="x86_64"
|
||||||
grub_file="BOOTX64.EFI"
|
grub_file="BOOTX64.EFI"
|
||||||
grub_pkg="grub-common grub-pc-bin grub-efi-amd64-bin systemd-boot grub-efi-amd64-signed shim-signed grub-efi-amd64 grub2-common"
|
grub_pkg="grub-common grub-pc-bin grub-efi-amd64-bin systemd-boot grub-efi-amd64-signed shim-signed grub-efi-amd64 grub2-common"
|
||||||
main_kernel="proxmox-kernel-6.8"
|
|
||||||
elif [ "$hostarch" == "loongarch64" ];then
|
elif [ "$hostarch" == "loongarch64" ];then
|
||||||
target_arch="loong64"
|
target_arch="loong64"
|
||||||
grub_prefix="loongarch64"
|
grub_prefix="loongarch64"
|
||||||
@ -58,7 +57,7 @@ isofs(){
|
|||||||
rm $targetdir/iso/ -rf
|
rm $targetdir/iso/ -rf
|
||||||
mkdir $targetdir/iso/boot/ -p
|
mkdir $targetdir/iso/boot/ -p
|
||||||
mkdir $targetdir/iso/{.installer,.base,.installer-mp,.workdir} -p
|
mkdir $targetdir/iso/{.installer,.base,.installer-mp,.workdir} -p
|
||||||
cp $script_dir/.cd-info $script_dir/Release.txt $script_dir/COPYING $script_dir/COPYRIGHT $script_dir/EULA $targetdir/iso/ ||errlog "do copy elua to iso dir failed"
|
cp $script_dir/.cd-info $script_dir/Release.txt $script_dir/COPYING $script_dir/COPYRIGHT $script_dir/EULA $targetdir/iso/ ||errlog "do copy elua to iso dir failed"
|
||||||
cp -r $script_dir/proxmox $targetdir/iso/ ||errlog "do proxmox dir to iso dir failed"
|
cp -r $script_dir/proxmox $targetdir/iso/ ||errlog "do proxmox dir to iso dir failed"
|
||||||
echo "" > $targetdir/iso/auto-installer-capable
|
echo "" > $targetdir/iso/auto-installer-capable
|
||||||
touch $targetdir/.isofs.lock
|
touch $targetdir/.isofs.lock
|
||||||
@ -146,6 +145,9 @@ overlayfs(){
|
|||||||
fix_console_setup
|
fix_console_setup
|
||||||
mkdir $targetdir/overlay/mount/usr/lib/modules/
|
mkdir $targetdir/overlay/mount/usr/lib/modules/
|
||||||
cp -r $targetdir/rootfs/lib/modules/* $targetdir/overlay/mount/usr/lib/modules/
|
cp -r $targetdir/rootfs/lib/modules/* $targetdir/overlay/mount/usr/lib/modules/
|
||||||
|
#create grub use overlay binary
|
||||||
|
grub_install
|
||||||
|
mkefi_img
|
||||||
chroot $targetdir/overlay/mount/ apt clean
|
chroot $targetdir/overlay/mount/ apt clean
|
||||||
rm -rf $targetdir/overlay/mount/var/cache/apt/archives/
|
rm -rf $targetdir/overlay/mount/var/cache/apt/archives/
|
||||||
umount $targetdir/overlay/mount || errlog "umount overlayfs failed"
|
umount $targetdir/overlay/mount || errlog "umount overlayfs failed"
|
||||||
@ -252,17 +254,13 @@ create_pkg(){
|
|||||||
main_pkg=`cat proxmox/$PRODUCT-packages.list.line`
|
main_pkg=`cat proxmox/$PRODUCT-packages.list.line`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chroot $targetdir/rootfs apt --download-only install -y $main_pkg postfix squashfs-tools traceroute net-tools pci.ids pciutils efibootmgr xfsprogs fonts-liberation dnsutils $extra_pkg $grub_pkg gettext-base sosreport ethtool dmeventd eject chrony locales locales-all systemd rsyslog ifupdown2 ksmtuned zfsutils-linux zfs-zed spl btrfs-progs gdisk bash-completion zfs-initramfs dosfstools||errlog "download proxmox-ve package failed"
|
chroot $targetdir/rootfs apt --download-only install -y $main_pkg postfix squashfs-tools traceroute net-tools pci.ids pciutils efibootmgr xfsprogs fonts-liberation dnsutils $extra_pkg $grub_pkg gettext-base sosreport ethtool dmeventd eject chrony locales locales-all systemd rsyslog ifupdown2 ksmtuned zfsutils-linux zfs-zed spl btrfs-progs gdisk bash-completion zfs-initramfs dosfstools||errlog "download proxmox-ve package failed"
|
||||||
|
|
||||||
if [ ! -z "$extra_kernel" ] && [ "$PRODUCT" != "pbs" ] ;then
|
if [ ! -z "$extra_kernel" ] && [ "$PRODUCT" != "pbs" ] ;then
|
||||||
if [ "$target_arch" == "arm64" ] || [ "$target_arch" == "loong64" ] ;then
|
chroot $targetdir/rootfs apt --download-only install -y $extra_kernel ||errlog "kernel installed failed"
|
||||||
chroot $targetdir/rootfs apt --download-only install -y $extra_kernel ||errlog "kernel installed failed"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$target_arch" != "amd64" ];then
|
chroot $targetdir/rootfs apt --download-only install -y $main_kernel ||errlog "kernel installed failed"
|
||||||
chroot $targetdir/rootfs apt --download-only install -y $main_kernel ||errlog "kernel installed failed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir $targetdir/iso/proxmox/packages/ -p
|
mkdir $targetdir/iso/proxmox/packages/ -p
|
||||||
cp -r $targetdir/rootfs/var/cache/apt/archives/*.deb $targetdir/iso/proxmox/packages/ ||errlog "do copy pkg failed"
|
cp -r $targetdir/rootfs/var/cache/apt/archives/*.deb $targetdir/iso/proxmox/packages/ ||errlog "do copy pkg failed"
|
||||||
@ -369,7 +367,9 @@ if [ ! -f "$targetdir/.grub.lock" ];then
|
|||||||
mkdir $targetdir/iso/EFI/BOOT/ -p
|
mkdir $targetdir/iso/EFI/BOOT/ -p
|
||||||
mkdir $targetdir/iso/boot/grub -p
|
mkdir $targetdir/iso/boot/grub -p
|
||||||
echo "do grub install"
|
echo "do grub install"
|
||||||
grub-mkimage -o $targetdir/iso/EFI/BOOT/$grub_file -O $grub_prefix-efi -p /EFI/BOOT/ \
|
mkdir $targetdir/overlay/mount/efi
|
||||||
|
mount -o bind $targetdir/iso/EFI/BOOT/ $targetdir/overlay/mount/efi
|
||||||
|
chroot $targetdir/overlay/mount/ grub-mkimage -o /efi/$grub_file -O $grub_prefix-efi -p /EFI/BOOT/ \
|
||||||
boot linux chain normal configfile \
|
boot linux chain normal configfile \
|
||||||
part_gpt part_msdos fat iso9660 udf \
|
part_gpt part_msdos fat iso9660 udf \
|
||||||
test true keystatus loopback regexp probe \
|
test true keystatus loopback regexp probe \
|
||||||
@ -377,6 +377,9 @@ if [ ! -f "$targetdir/.grub.lock" ];then
|
|||||||
echo read help ls cat halt reboot lvm ext2 xfs hfsplus hfs \
|
echo read help ls cat halt reboot lvm ext2 xfs hfsplus hfs \
|
||||||
acpi search_label search search_fs_file search_fs_uuid \
|
acpi search_label search search_fs_file search_fs_uuid \
|
||||||
serial terminfo terminal zfs btrfs efifwsetup
|
serial terminfo terminal zfs btrfs efifwsetup
|
||||||
|
|
||||||
|
umount $targetdir/overlay/mount/efi
|
||||||
|
rm -rf $targetdir/overlay/mount/efi
|
||||||
|
|
||||||
cp -r /boot/grub/ $targetdir/iso/boot/ ||errlog "do grub dir failed"
|
cp -r /boot/grub/ $targetdir/iso/boot/ ||errlog "do grub dir failed"
|
||||||
cp $script_dir/grub.cfg $targetdir/iso/boot/grub/ ||errlog "do copy grub cfg failed"
|
cp $script_dir/grub.cfg $targetdir/iso/boot/grub/ ||errlog "do copy grub cfg failed"
|
||||||
@ -417,8 +420,6 @@ isofs
|
|||||||
isoinfo
|
isoinfo
|
||||||
buildroot
|
buildroot
|
||||||
create_pkg
|
create_pkg
|
||||||
grub_install
|
|
||||||
mkefi_img
|
|
||||||
overlayfs
|
overlayfs
|
||||||
copy_squ
|
copy_squ
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user