Browse Source

Hide non OEM install menu option on OEM image

merge-requests/1/head
Matthias Klumpp 3 years ago
parent
commit
6ba168628f
  1. 6
      auto/config
  2. 16
      config/hooks.oem/004-setup-oem.hook.chroot

6
auto/config

@ -117,6 +117,9 @@ EOF
;;
esac
rm -f config/hooks/normal/004-setup-oem.hook.chroot
rm -rf config/includes.chroot
rm -rf config/bootloaders/isolinux
cp -r config/bootloaders/isolinux.live/ config/bootloaders/isolinux
;;
@ -145,6 +148,9 @@ EOF
;;
esac
rm -f config/hooks/normal/004-setup-oem.hook.chroot
cp config/hooks.oem/004-setup-oem.hook.chroot config/hooks/normal/
rm -rf config/bootloaders/isolinux/
cp -r config/bootloaders/isolinux.oem config/bootloaders/isolinux
;;

16
config/hooks.oem/004-setup-oem.hook.chroot

@ -1,16 +1,6 @@
#!/bin/sh
set -e
OEM_DIR=/var/lib/pureos-oem/
mkdir -p $OEM_DIR
cd $OEM_DIR
apt install -y ca-certificates
# d-i components
wget https://repo.pureos.net/pureos/dists/green/main/installer-amd64/current/images/hd-media/gtk/initrd.gz
wget https://repo.pureos.net/pureos/dists/green/main/installer-amd64/current/images/hd-media/gtk/vmlinuz
# PureOS image
wget --progress=dot:giga -O pureos.iso https://downloads.puri.sm/live/gnome/2018-01-20/pureos-8.0-gnome-live_20180120-amd64.hybrid.iso
# hide non-OEM install options from menus
rm -f /usr/share/applications/calamares.desktop
rm -f /usr/share/applications/pureos-live-installer.desktop
Loading…
Cancel
Save