Skip to content
Snippets Groups Projects
Commit 4271ebf8 authored by Simon McVittie's avatar Simon McVittie
Browse files

debos-runtimes: Only remove Essential packages after exporting sysroot


This lets us keep Essential and otherwise important packages for a
sysroot, such as mount and passwd (in particular, utilities that are
required by Toolbx) in the Platform -sysroot.tar.gz that is intended
to become a Docker container, but remove them before generating the
Platform -runtime.tar.gz.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 94973905
No related branches found
No related tags found
No related merge requests found
......@@ -143,23 +143,6 @@ actions:
{{ end }}{{/* $debug_symbols */}}
{{ end }}
{{ if not $sdk }}
- action: run
label: usrmerge
chroot: false
command: 'echo; "$RECIPEDIR/usrmerge" "$ROOTDIR"'
- action: run
label: platformize
chroot: false
command: 'echo; "$RECIPEDIR/platformize" "$ROOTDIR"'
{{ end }}{{/* not $sdk */}}
- action: run
label: purge-conffiles
chroot: false
command: 'echo; "$RECIPEDIR/purge-conffiles" "$ROOTDIR"'
{{ if $post_script }}
- action: run
label: post_script
......@@ -184,7 +167,7 @@ actions:
{{ end }}{{/* platform */}}
- action: run
label: purge-conffiles again
label: purge-conffiles
chroot: false
command: 'echo; "$RECIPEDIR/purge-conffiles" "$ROOTDIR"'
......@@ -253,10 +236,6 @@ actions:
label: copy manifest for SDK
chroot: false
command: 'echo; mv "$ROOTDIR/usr/manifest.deb822.gz" "$RECIPEDIR/manifest.platform.deb822.gz"'
- action: run
label: dpkg --purge dpkg
chroot: true
command: 'echo; dpkg --purge --force-remove-essential --force-depends dpkg'
{{ end }}{{/* platform */}}
- action: run
......@@ -340,6 +319,24 @@ actions:
chroot: false
command: 'echo; "$RECIPEDIR/usrmerge" "$ROOTDIR"'
{{ if not $sdk }}
- action: run
label: platformize
chroot: false
command: 'echo; "$RECIPEDIR/platformize" "$ROOTDIR"'
# platformize might have removed packages: remove their conffiles too
- action: run
label: purge-conffiles
chroot: false
command: 'echo; "$RECIPEDIR/purge-conffiles" "$ROOTDIR"'
- action: run
label: dpkg --purge dpkg
chroot: true
command: 'echo; dpkg --purge --force-remove-essential --force-depends dpkg'
{{ end }}{{/* platform */}}
- action: overlay
source: runtimes/{{ $runtime }}/flatpak-overlay
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment