|
|
@ -77,6 +77,9 @@ case "$arch" in
|
|
|
|
amd64)
|
|
|
|
amd64)
|
|
|
|
kernel_flavour="amd64"
|
|
|
|
kernel_flavour="amd64"
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
arm64)
|
|
|
|
|
|
|
|
kernel_flavour="arm64"
|
|
|
|
|
|
|
|
;;
|
|
|
|
i386)
|
|
|
|
i386)
|
|
|
|
kernel_flavour="686-pae"
|
|
|
|
kernel_flavour="686-pae"
|
|
|
|
;;
|
|
|
|
;;
|
|
|
@ -87,28 +90,48 @@ esac
|
|
|
|
|
|
|
|
|
|
|
|
case "$IMAGE_TYPE" in
|
|
|
|
case "$IMAGE_TYPE" in
|
|
|
|
"live"|"LIVE")
|
|
|
|
"live"|"LIVE")
|
|
|
|
FLAVOR=live
|
|
|
|
|
|
|
|
FLAVOR_PRETTY=Live
|
|
|
|
case "$UI_TYPE" in
|
|
|
|
# create package config
|
|
|
|
"gnome"|"GNOME")
|
|
|
|
cat > config/package-lists/desktop.list.chroot <<EOF
|
|
|
|
FLAVOR=gnome-live
|
|
|
|
pureos-desktop
|
|
|
|
FLAVOR_PRETTY="GNOME Live"
|
|
|
|
|
|
|
|
# create package config for GNOME
|
|
|
|
|
|
|
|
cat > config/package-lists/desktop.list.chroot <<EOF
|
|
|
|
|
|
|
|
pureos-gnome
|
|
|
|
|
|
|
|
linux-image-$kernel_flavour
|
|
|
|
|
|
|
|
calamares
|
|
|
|
|
|
|
|
grub-pc
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"plasma")
|
|
|
|
|
|
|
|
FLAVOR=plasma-live
|
|
|
|
|
|
|
|
FLAVOR_PRETTY="KDE Plasma Live"
|
|
|
|
|
|
|
|
# create package config for KDE Plasma
|
|
|
|
|
|
|
|
cat > config/package-lists/desktop.list.chroot <<EOF
|
|
|
|
|
|
|
|
pureos-plasma
|
|
|
|
linux-image-$kernel_flavour
|
|
|
|
linux-image-$kernel_flavour
|
|
|
|
calamares
|
|
|
|
calamares
|
|
|
|
grub-pc
|
|
|
|
grub-pc
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
rm -f config/hooks/normal/004-setup-oem.hook.chroot
|
|
|
|
rm -f config/hooks/normal/004-setup-oem.hook.chroot
|
|
|
|
rm -rf config/includes.chroot
|
|
|
|
rm -rf config/includes.chroot
|
|
|
|
|
|
|
|
|
|
|
|
rm -rf config/bootloaders/isolinux
|
|
|
|
rm -rf config/bootloaders/isolinux
|
|
|
|
cp -r config/bootloaders/isolinux.live/ config/bootloaders/isolinux
|
|
|
|
cp -r config/bootloaders/isolinux.live/ config/bootloaders/isolinux
|
|
|
|
cp -f config/bootloaders/live.cfg.in config/bootloaders/isolinux/
|
|
|
|
cp -f config/bootloaders/live.cfg.in config/bootloaders/isolinux/
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
"oem")
|
|
|
|
"oem")
|
|
|
|
FLAVOR=oem
|
|
|
|
|
|
|
|
FLAVOR_PRETTY=OEM
|
|
|
|
case "$UI_TYPE" in
|
|
|
|
# create package config
|
|
|
|
"gnome"|"GNOME")
|
|
|
|
|
|
|
|
FLAVOR=gnome-oem
|
|
|
|
|
|
|
|
FLAVOR_PRETTY="GNOME OEM"
|
|
|
|
|
|
|
|
# create package config for GNOME (OEM)
|
|
|
|
cat > config/package-lists/desktop.list.chroot <<EOF
|
|
|
|
cat > config/package-lists/desktop.list.chroot <<EOF
|
|
|
|
pureos-minimal
|
|
|
|
pureos-minimal
|
|
|
|
linux-image-$kernel_flavour
|
|
|
|
linux-image-$kernel_flavour
|
|
|
@ -116,14 +139,24 @@ grub-pc
|
|
|
|
parted
|
|
|
|
parted
|
|
|
|
python3-parted
|
|
|
|
python3-parted
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"plasma")
|
|
|
|
|
|
|
|
FLAVOR=plasma-oem
|
|
|
|
|
|
|
|
FLAVOR_PRETTY="KDE Plasma OEM"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Can not create a OEM installer image for KDE Plasma at time."
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
rm -f config/hooks/normal/004-setup-oem.hook.chroot
|
|
|
|
rm -f config/hooks/normal/004-setup-oem.hook.chroot
|
|
|
|
cp config/hooks.oem/004-setup-oem.hook.chroot config/hooks/normal/
|
|
|
|
cp config/hooks.oem/004-setup-oem.hook.chroot config/hooks/normal/
|
|
|
|
rm -rf config/includes.chroot
|
|
|
|
rm -rf config/includes.chroot
|
|
|
|
cp -r config/includes.chroot.oem config/includes.chroot
|
|
|
|
cp -r config/includes.chroot.oem config/includes.chroot
|
|
|
|
|
|
|
|
|
|
|
|
rm -rf config/bootloaders/isolinux/
|
|
|
|
rm -rf config/bootloaders/isolinux/
|
|
|
|
cp -r config/bootloaders/isolinux.oem config/bootloaders/isolinux
|
|
|
|
cp -r config/bootloaders/isolinux.oem config/bootloaders/isolinux
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|