pmaports/main/postmarketos-base
Oliver Smith 8b7adeddf3
main/postmarketos-base: remove post-install config overrides (MR 1713)
Do not change config files in post-install scripts anymore (with sed
commands or by other means). Instead, ship the files inside the packages
and use "replaces", so apk allows the package to overwrite files from
other packages:
https://wiki.alpinelinux.org/wiki/APKBUILD_Reference#replaces

Notes on specific files:
* /etc/elogind/logind.conf: original file only consists of commented out
  compile defaults. Copy them over for now. In the future we should be
  able to install our own config into a .d directory, without all the
  comments: 8358fc5950
* /etc/fstab: original file only has /dev/cdrom and /dev/usbdisk
  entries, which are not useful for postmarketOS:
  https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/alpine-baselayout/APKBUILD
* /etc/motd: reformat the text, add link to the chat
* /etc/conf.d/syslog: original file only contained 'SYSLOGD_OPTS="-t"',
  make the override file as if the sed statement from post-install was
  executed
* /etc/wpa_supplicant/wpa_supplicant.conf: post-install script touches
  this file. We probably added it back in 2017 in relation to enabling
  D-Bus (though the PR does not mention it explicity), but at least with
  the current init.d script of NetworkManager, we can simply have '-u' in
  wpa_supplicant_args:
  https://github.com/postmarketOS/pmbootstrap/pull/578
  https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/wpa_supplicant/wpa_supplicant.initd
* /etc/sudoers: base on original /etc/sudoers, but remove all the
  commented out stuff except for the visudo note at the top. We could
  also put a file in /etc/sudoers.d, but since the wheel line is present
  in the original /etc/sudoers and only commented out, it would be kind
  of unexpected to enable it in a file in /etc/sudoers.d. I prefer this
  stripped down version of the file, that is easy to read.
2020-12-03 13:11:03 +01:00
..
APKBUILD main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
postmarketos-base-elogind.pre-upgrade main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
postmarketos-base.post-install main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
postmarketos-base.pre-upgrade main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
postmarketos-base.trigger postmarketos-base: configure getty using deviceinfo_getty variable (!771) 2019-12-07 01:32:23 +01:00
rootfs-etc-chrony-chrony.conf main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-conf.d-swapfile main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-conf.d-syslog main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-conf.d-wpa_supplicant main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-elogind-logind.conf main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-fstab main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-init.d-deferred-initcalls main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-init.d-devmappings main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-init.d-swapfile main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-issue main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-motd main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-NetworkManager-conf.d-00-postmarketos.conf main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-polkit-1-rules.d-50-org.freedesktop.NetworkManager.rules main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-sudoers main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-udev-rules.d-50-firmware.rules main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-sbin-swapfile main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-usr-lib-firmwareload.sh main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-usr-libexec-elogind-system-sleep-suspend-disable-conditions.hook main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00