Changeset View
Changeset View
Standalone View
Standalone View
debian/neon-settings.postinst
Show All 32 Lines | 32 | echo " \`dpkg-reconfigure unattended-upgrades\` allows" \ | |||
---|---|---|---|---|---|
33 | "configuration of the package." | 33 | "configuration of the package." | ||
34 | fi | 34 | fi | ||
35 | db_set unattended-upgrades/enable_auto_updates false || true | 35 | db_set unattended-upgrades/enable_auto_updates false || true | ||
36 | rm -f "/etc/apt/apt.conf.d/20auto-upgrades" | 36 | rm -f "/etc/apt/apt.conf.d/20auto-upgrades" | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | mangle_unattended_upgrades | 39 | mangle_unattended_upgrades | ||
40 | 40 | | |||
41 | # Special hack to fix qemu-arm so one can build flatpaks for plasma-mobile. | ||||
42 | # The problem is that by default binfmt interpreters are applied lazily which | ||||
43 | # breaks with bubblewrap because of namespaces. Instead we override the original | ||||
44 | # qemu-user-static binfmt configuration to also set the F flag (fix-binary) | ||||
45 | # to ensure the emulation is immediately applied. | ||||
46 | # This is fixed in 18.10 onwards. | ||||
47 | # Note that this requires fairly excessive triggers unfortunately. | ||||
48 | # https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1815100 | ||||
49 | . /etc/os-release | ||||
50 | qemu_arm=/usr/bin/qemu-arm-static | ||||
51 | update_binfmts=/usr/sbin/update-binfmts | ||||
52 | if [ -e $qemu_arm ] && [ -e $update_binfmts ] && [ "18.04" = "$VERSION_ID" ]; then | ||||
53 | echo "Overriding qemu-arm binfmt configuration with fix binary flag" | ||||
54 | update-binfmts \ | ||||
55 | --package qemu-user-static \ | ||||
56 | --install qemu-arm \ | ||||
57 | $qemu_arm \ | ||||
58 | --magic "\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00" \ | ||||
59 | --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" \ | ||||
60 | --offset 0 \ | ||||
61 | --credential yes \ | ||||
62 | --fix-binary yes | ||||
63 | | ||||
64 | fi | ||||
65 | | ||||
41 | # dh_installdeb will replace this with shell code automatically | 66 | # dh_installdeb will replace this with shell code automatically | ||
42 | # generated by other debhelper scripts. | 67 | # generated by other debhelper scripts. | ||
43 | 68 | | |||
44 | #DEBHELPER# | 69 | #DEBHELPER# | ||
45 | 70 | | |||
46 | exit 0 | 71 | exit 0 |