Make sure we only build for amd64, adjust settings accordingly

ubuntu/focal
Rohan Garg 9 years ago committed by Simon Quigley
parent e1e7cf5e53
commit 8b3f6d4778

8
debian/control vendored

@ -4,15 +4,11 @@ Priority: optional
Maintainer: Rohan Garg <rohan@kde.org>
Build-Depends: debhelper (>= 9),
Standards-Version: 3.9.6
Homepage: https://github.com/calamares/calamares
Vcs-Git: http://github.com/calamares/calamares-debian.git
Vcs-Browser: https://github.com/calamares/calamares-debian.git
Homepage: https://github.com/netrunner-core/calamares-core
Package: calamares-core
Architecture: all
Architecture: amd64
Depends: calamares
Breaks: calamares-branding, calamares-core-settings
Replaces: calamares-branding, calamares-core-settings
Description: distribution-independent installer framework
distribution-independent installer framework.
.

@ -1,31 +0,0 @@
---
modules-search: [ local ]
instances:
-
config: resize.conf
id: resize
module: interactiveterminal
sequence:
- show:
- welcome
- locale
- keyboard
- users
- interactiveterminal@resize
- exec:
- machineid
- locale
- localecfg
- keyboard
- users
- networkcfg
- services
- displaymanager
- show:
- finished
branding: netrunner-core
dont-chroot: true
prompt-install: false

@ -0,0 +1,81 @@
#!/bin/sh
## live-config(7) - System Configuration Components
## Copyright (C) 2014 Rohan Garg <rohan@kde.org>
##
## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.
set -e
Cmdline ()
{
# Reading kernel command line
for _PARAMETER in ${LIVE_CONFIG_CMDLINE}
do
case "${_PARAMETER}" in
live-config.no_calamares=|no_calamares=)
NO_CALAMARES="true"
;;
live-config.username=*|username=*)
LIVE_USERNAME="${_PARAMETER#*username=}"
;;
esac
done
}
Init ()
{
# Checking if package is installed or already configured
if [ ! -e /usr/bin/calamares ]
then
exit 0
fi
echo -n " calamares"
}
Config ()
{
if [ ! -e /usr/bin/calamares ]
then
exit 0
fi
if [ "${NO_CALAMARES}" != "true" ]
then
if [ ! -e /home/${LIVE_USERNAME}/Desktop ]
then
mkdir -p "/home/${LIVE_USERNAME}/Desktop"
fi
cat > "/home/${LIVE_USERNAME}/Desktop/calamares.desktop" << EOF
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Version=1.0
Name=Install Netrunner Core Edition
GenericName=Install Netrunner Core Edition
TryExec=calamares
Exec=pkexec /usr/bin/calamares
Comment=Calamares — System Installer
Icon=calamares
Terminal=false
StartupNotify=false
Categories=Qt;System;
EOF
chmod a+x "/home/${LIVE_USERNAME}/Desktop/calamares.desktop"
chown -R ${LIVE_USERNAME}:${LIVE_USERNAME} "/home/${LIVE_USERNAME}/Desktop"
fi
# Creating state file
touch /var/lib/live/config/calamares
}
Cmdline
Init
Config
Loading…
Cancel
Save