Merge branch 'master' into davide-test
This commit is contained in:
commit
3d201d9c2a
11 changed files with 52 additions and 16 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{{- $image := or .image "gemian-cosmopda.tgz" -}}
|
{{- $image := or .image "gemian-cosmocom.tgz" -}}
|
||||||
{{- $output := or .output "tarball" -}}
|
{{- $output := or .output "tarball" -}}
|
||||||
{{- $variant := or .variant "mate" -}}
|
{{- $variant := or .variant "mate" -}}
|
||||||
|
|
||||||
|
|
@ -20,7 +20,15 @@ actions:
|
||||||
|
|
||||||
- action: apt
|
- action: apt
|
||||||
description: Installing Cosmo Communicator-specific packages
|
description: Installing Cosmo Communicator-specific packages
|
||||||
packages: [ droid-hal-cosmopda ]
|
target-device: mt6771
|
||||||
|
packages:
|
||||||
|
- bluebinder
|
||||||
|
- media-hub
|
||||||
|
- gemian-system
|
||||||
|
- lxc-android
|
||||||
|
- lxcfs
|
||||||
|
- uidmap
|
||||||
|
- cosmo-linux-kernel
|
||||||
|
|
||||||
- action: run
|
- action: run
|
||||||
description: Generate /usr/share/kernel/linux-boot.img for Cosmo Communicator
|
description: Generate /usr/share/kernel/linux-boot.img for Cosmo Communicator
|
||||||
|
|
@ -29,12 +37,11 @@ actions:
|
||||||
|
|
||||||
- action: run
|
- action: run
|
||||||
chroot: true
|
chroot: true
|
||||||
command: echo cosmopda > /etc/hostname
|
command: echo cosmocom > /etc/hostname
|
||||||
|
|
||||||
- action: run
|
- action: run
|
||||||
chroot: true
|
chroot: true
|
||||||
description: Setting password on root user (useful for testing, remove later)
|
command: echo "127.0.0.1 cosmocom" >> /etc/hosts
|
||||||
command: echo root:root | chpasswd
|
|
||||||
|
|
||||||
- action: run
|
- action: run
|
||||||
chroot: true
|
chroot: true
|
||||||
|
|
@ -76,6 +83,11 @@ actions:
|
||||||
description: Removing xserver-xorg-input-libinput as it does not work with touchscreen yet
|
description: Removing xserver-xorg-input-libinput as it does not work with touchscreen yet
|
||||||
command: apt remove xserver-xorg-input-libinput
|
command: apt remove xserver-xorg-input-libinput
|
||||||
|
|
||||||
|
- action: run
|
||||||
|
chroot: true
|
||||||
|
description: Removing /var/log/journal to avoid persisant journaling
|
||||||
|
command: rm -rf /var/log/journal/
|
||||||
|
|
||||||
{{ if eq $output "tarball" }}
|
{{ if eq $output "tarball" }}
|
||||||
- action: pack
|
- action: pack
|
||||||
file: {{ $image }}
|
file: {{ $image }}
|
||||||
|
|
@ -85,10 +97,15 @@ actions:
|
||||||
{{ if eq $output "image" }}
|
{{ if eq $output "image" }}
|
||||||
- action: image-file
|
- action: image-file
|
||||||
imagename: {{ $image }}
|
imagename: {{ $image }}
|
||||||
imagesize: 3221225472
|
imagesize: 6000000000
|
||||||
|
|
||||||
fs: ext4
|
fs: ext4
|
||||||
fsname: "gemian"
|
fsname: "gemian"
|
||||||
|
|
||||||
|
- action: run
|
||||||
|
description: Allow jenkins user to access file
|
||||||
|
command: chown jenkins.jenkins {{ $image }}
|
||||||
|
|
||||||
- action: filesystem-deploy
|
- action: filesystem-deploy
|
||||||
setup-fstab: false
|
setup-fstab: false
|
||||||
setup-kernel-cmdline: false
|
setup-kernel-cmdline: false
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ actions:
|
||||||
|
|
||||||
- action: apt
|
- action: apt
|
||||||
description: Installing additional Debian packages
|
description: Installing additional Debian packages
|
||||||
packages: [ curl, gnupg, net-tools, openssh-server, sudo ]
|
packages: [ curl, gnupg, net-tools, openssh-server, sudo, avahi-daemon, locales, bash-completion ]
|
||||||
|
|
||||||
- action: run
|
- action: run
|
||||||
chroot: true
|
chroot: true
|
||||||
|
|
@ -43,6 +43,7 @@ actions:
|
||||||
- xkb-data
|
- xkb-data
|
||||||
- xserver-xorg-video-hwcomposer
|
- xserver-xorg-video-hwcomposer
|
||||||
- xss-lock
|
- xss-lock
|
||||||
|
- camera-app
|
||||||
|
|
||||||
- action: run
|
- action: run
|
||||||
chroot: true
|
chroot: true
|
||||||
|
|
@ -63,3 +64,4 @@ actions:
|
||||||
chroot: true
|
chroot: true
|
||||||
description: Setting Gemian users
|
description: Setting Gemian users
|
||||||
script: scripts/setup-user.sh
|
script: scripts/setup-user.sh
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,12 @@ actions:
|
||||||
|
|
||||||
- action: apt
|
- action: apt
|
||||||
description: Installing Gemini PDA-specific packages
|
description: Installing Gemini PDA-specific packages
|
||||||
packages: [ droid-hal-cosmopda gemian-system initramfs-tools-halium gemian-modular-kernel ]
|
target-device: mt6797
|
||||||
|
packages:
|
||||||
|
- initramfs-tools-halium
|
||||||
|
- gemian-modular-kernel
|
||||||
|
- gemian-system
|
||||||
|
- lxc-android
|
||||||
|
|
||||||
- action: run
|
- action: run
|
||||||
chroot: true
|
chroot: true
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
Section "Monitor"
|
Section "Monitor"
|
||||||
Identifier "Monitor0"
|
Identifier "Monitor0"
|
||||||
DisplaySize 135 68 # In millimeters
|
DisplaySize 136 68 # In millimeters - see physical_height/width in kernel sources (aeon_ssd2092_fhd_dsi_solomon.c - Cosmo)
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
Section "Device"
|
Section "Device"
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ SKEL_IGNORE_REGEX="dpkg-(old|new|dist|save)"
|
||||||
# new users to other groups.
|
# new users to other groups.
|
||||||
# This is the list of groups that new non-system users will be added to
|
# This is the list of groups that new non-system users will be added to
|
||||||
# Default:
|
# Default:
|
||||||
EXTRA_GROUPS="audio video sudo aid_system aid_graphics aid_input aid_audio aid_net_bt_admin aid_net_bt aid_inet aid_inet_raw aid_inet_admin"
|
EXTRA_GROUPS="audio input video sudo dialout aid_media aid_system aid_graphics aid_input aid_radio aid_audio aid_wakelock aid_net_bt_admin aid_net_bt aid_inet aid_inet_raw aid_inet_admin"
|
||||||
|
|
||||||
# If ADD_EXTRA_GROUPS is set to something non-zero, the EXTRA_GROUPS
|
# If ADD_EXTRA_GROUPS is set to something non-zero, the EXTRA_GROUPS
|
||||||
# option above will be default behavior for adding new, non-system users
|
# option above will be default behavior for adding new, non-system users
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,5 @@
|
||||||
update_info=kscreenlocker.upd:0.1-autolock
|
update_info=kscreenlocker.upd:0.1-autolock
|
||||||
|
|
||||||
[Daemon]
|
[Daemon]
|
||||||
Autolock=false
|
Autolock=true
|
||||||
LockOnResume=false
|
LockOnResume=true
|
||||||
|
|
|
||||||
7
overlay/common/etc/sleep.conf.d/gemian.conf
Normal file
7
overlay/common/etc/sleep.conf.d/gemian.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[Sleep]
|
||||||
|
AllowSuspend=yes
|
||||||
|
AllowHibernation=no
|
||||||
|
AllowSuspendThenHibernate=no
|
||||||
|
AllowHybridSleep=no
|
||||||
|
SuspendMode=suspend
|
||||||
|
SuspendState=mem freeze
|
||||||
|
|
@ -1,4 +1,2 @@
|
||||||
wlan_drv_gen3
|
|
||||||
bt_drv
|
|
||||||
gps_drv
|
gps_drv
|
||||||
fmradio_drv
|
fmradio_drv
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,3 @@ echo "Pin: origin gemian-buster.thinkglobally.org" >> /etc/apt/preferences.d/gem
|
||||||
echo "Pin-Priority: 2000" >> /etc/apt/preferences.d/gemian.pref
|
echo "Pin-Priority: 2000" >> /etc/apt/preferences.d/gemian.pref
|
||||||
|
|
||||||
curl https://gemian.thinkglobally.org/archive-key.asc | apt-key add -
|
curl https://gemian.thinkglobally.org/archive-key.asc | apt-key add -
|
||||||
curl http://gemian-buster.thinkglobally.org/gemian-buster-key.asc | apt-key add -
|
|
||||||
|
|
|
||||||
|
|
@ -219,7 +219,9 @@ groupadd --gid 9999 aid_nobody
|
||||||
useradd --gid 9999 --no-create-home --home-dir /nonexistent --no-user-group --system --shell /usr/sbin/nologin --uid 9999 aid_nobody
|
useradd --gid 9999 --no-create-home --home-dir /nonexistent --no-user-group --system --shell /usr/sbin/nologin --uid 9999 aid_nobody
|
||||||
|
|
||||||
groupadd -g 100000 cosmo
|
groupadd -g 100000 cosmo
|
||||||
useradd -m -u 100000 -g 100000 -G audio,input,video,sudo,aid_system,aid_graphics,aid_input,aid_audio,aid_net_bt_admin,aid_net_bt,aid_inet,aid_net_raw,aid_net_admin -s /bin/bash cosmo
|
useradd -m -u 100000 -g 100000 -G audio,input,video,sudo,dialout,aid_media,aid_system,aid_graphics,aid_input,aid_radio,aid_wakelock,aid_audio,aid_net_bt_admin,aid_net_bt,aid_inet,aid_net_raw,aid_net_admin -s /bin/bash cosmo
|
||||||
echo cosmo:cosmo | chpasswd
|
echo cosmo:cosmo | chpasswd
|
||||||
|
|
||||||
usermod systemd-timesync -a -G aid_inet
|
usermod systemd-timesync -a -G aid_inet
|
||||||
|
usermod avahi -a -G aid_inet
|
||||||
|
sudo usermod pulse -a -G aid_media
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,12 @@ actions:
|
||||||
- xserver-xorg
|
- xserver-xorg
|
||||||
- xserver-xorg-input-evdev
|
- xserver-xorg-input-evdev
|
||||||
- codi-app
|
- codi-app
|
||||||
|
- kde-spectacle
|
||||||
|
- bluetooth
|
||||||
|
- rfkill
|
||||||
|
- bluedevil
|
||||||
|
- bluez-tools
|
||||||
|
- pulseaudio-module-bluetooth
|
||||||
|
|
||||||
- action: run
|
- action: run
|
||||||
chroot: true
|
chroot: true
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue