[elbe-devel] Elbe 2.x installs additional/unnecessary packages in RFS (possible regression wrt 1.x)

Lukasz Walewski lwalewski at s-can.at
Thu Jan 4 11:56:05 CET 2018


>-----Ursprüngliche Nachricht-----
>Von: Manuel Traut [mailto:manuel.traut at linutronix.de]
>Gesendet: Mittwoch, 3. Januar 2018 06:58
>An: Lukasz Walewski
>Cc: elbe-devel at linutronix.de
>Betreff: Re: [elbe-devel] Elbe 2.x installs additional/unnecessary
>packages in RFS (possible regression wrt 1.x)
>
>Hi Lukasz.

Hi Manuel,

>Is it posible to <purge>apt-listchanges</purge> via finetuning?

Well... yes. However, it removes only this very package - its dependencies remain, even if you run "apt-get autoremove" afterwards. In order to get rid of all of them one needs to do:

<purge>apt-listchanges</purge>
<purge>python-apt</purge>
<purge>python-apt-common</purge>
<purge>python-support</purge>
<purge>python</purge>
<purge>python-minimal</purge>
<purge>python2.7</purge>
<purge>python2.7-minimal</purge>

...in exactly that order, otherwise you get dependency problems.

Besides, I don't think it's a general solution: the image I was talking so far intentionally uses python3. Another one, that I use as a rescue image, still uses python2 so I must not purge python2.7* packages or my image will turn out useless.

Side note: one needs to be careful with the finetuning command order. If you issue your <purge> commands after you removed the dpkg database in /var/lib/dpkg/info as recommended by the manual or renamed the whole /var tree into /var_debian as demonstrated in /examples, you obviously get the following error:

running cmd +chroot /var/cache/elbe/ID/target dpkg --purge apt-listchanges+
------------------------------------------------------------------------------
dpkg: error: unable to access dpkg status area: No such file or directory
------------------------------------------------------------------------------

Command failed with errorcode 2
Finetuning Error, trying to continue anyways

I hope for a solution that doesn't require the user to modify their XML, exclusively to go from 1.2 to 2.x without breaking reproducibility.

Best,
Lukasz

PS http://elbe-rfs.org/ is currently down.


----------------------------------------

[http://www.s-can.at/disclaimer/scan_industrial.jpg]

----------------------------------------

scan Messtechnik GmbH
Brigittagasse 22-24
A-1200 Wien/Vienna
tel. +43 1 219 73 93 - 0
fax +43 1 219 73 93 - 12
http://www.s-can.at
office at s-can.at

Geschaeftsfuehrer/President: DI Andreas Weingartner
Firmenbuchnummer/Incorporation No: FN178880i
Gerichtsstand/Court of Jurisdiction: Wien/Vienna



More information about the elbe-devel mailing list