Activity log for bug #2036195

Date Who What changed Old value New value Message
2023-09-15 10:51:40 Philip Roche bug added bug
2023-09-15 11:46:47 Andrew Cloke bug added subscriber Andrew Cloke
2023-09-17 00:28:37 Launchpad Janitor merge proposal linked https://code.launchpad.net/~vorlon/livecd-rootfs/+git/livecd-rootfs/+merge/451480
2023-09-17 23:59:23 Michael Hudson-Doyle livecd-rootfs (Ubuntu): status New In Progress
2023-09-19 01:38:25 Launchpad Janitor livecd-rootfs (Ubuntu): status In Progress Fix Released
2023-09-27 20:33:33 Steve Langasek nominated for series Ubuntu Bionic
2023-09-27 20:33:33 Steve Langasek bug task added livecd-rootfs (Ubuntu Bionic)
2023-09-27 20:33:33 Steve Langasek nominated for series Ubuntu Jammy
2023-09-27 20:33:33 Steve Langasek bug task added livecd-rootfs (Ubuntu Jammy)
2023-09-27 20:33:33 Steve Langasek nominated for series Ubuntu Lunar
2023-09-27 20:33:33 Steve Langasek bug task added livecd-rootfs (Ubuntu Lunar)
2023-09-27 20:33:33 Steve Langasek nominated for series Ubuntu Focal
2023-09-27 20:33:33 Steve Langasek bug task added livecd-rootfs (Ubuntu Focal)
2023-09-27 20:33:33 Steve Langasek nominated for series Ubuntu Xenial
2023-09-27 20:33:33 Steve Langasek bug task added livecd-rootfs (Ubuntu Xenial)
2023-09-29 14:54:12 Philip Roche livecd-rootfs (Ubuntu Xenial): assignee Philip Roche (philroche)
2023-09-29 14:54:15 Philip Roche livecd-rootfs (Ubuntu Bionic): assignee Philip Roche (philroche)
2023-09-29 14:54:17 Philip Roche livecd-rootfs (Ubuntu Focal): assignee Philip Roche (philroche)
2023-09-29 14:54:19 Philip Roche livecd-rootfs (Ubuntu Jammy): assignee Philip Roche (philroche)
2023-09-29 14:54:21 Philip Roche livecd-rootfs (Ubuntu Lunar): assignee Philip Roche (philroche)
2023-09-29 14:54:26 Philip Roche livecd-rootfs (Ubuntu Xenial): status New Confirmed
2023-09-29 14:54:29 Philip Roche livecd-rootfs (Ubuntu Bionic): status New Confirmed
2023-09-29 14:54:31 Philip Roche livecd-rootfs (Ubuntu Focal): status New Confirmed
2023-09-29 14:54:33 Philip Roche livecd-rootfs (Ubuntu Jammy): status New Confirmed
2023-09-29 14:54:35 Philip Roche livecd-rootfs (Ubuntu Lunar): status New Confirmed
2023-10-19 16:17:06 Philip Roche description After much debugging trying to understand why `apt-get autoremove` was not working in a binary hook I realised that all packages installed in a binary hook are marked as manually installed - even the dependencies of packages. This is a bug. Another side affect of this is that any dependency of a package in the base chroot that is removed in a binary hook is not autoremovable in the binary hook. It is autoremovable once the image is created and launched though. This is due to how the `setup_mountpoint` function works (see https://git.launchpad.net/livecd-rootfs/tree/live-build/functions#n123) specifically ``` mount -t tmpfs none "$mountpoint/var/lib/apt" ``` Which means that inside the chroot that the binary hook works on, the `/var/lib/apt` directory is empty... including the `/var/lib/apt/extended_states` file which is used to store whether a package was auto installed or not. The same goes the other way - any changes to the `/var/lib/apt/extended_states` file inside chroot that the binary hook is changing are not reflected in the final image due to the `teardown_mountpoint` (see https://git.launchpad.net/livecd-rootfs/tree/live-build/functions#n152) not persisting any of those changes. The end result being. * If a package is removed in the binary hook then the resulting image will likely have autoremovable packages at first launch * Any package and their dependencies installed in a binary hook will all be marked as manually installed. After much debugging trying to understand why `apt-get autoremove` was not working in a binary hook I realised that all packages installed in a binary hook are marked as manually installed - even the dependencies of packages. This is a bug. Another side affect of this is that any dependency of a package in the base chroot that is removed in a binary hook is not autoremovable in the binary hook. It is autoremovable once the image is created and launched though. This is due to how the `setup_mountpoint` function works (see https://git.launchpad.net/livecd-rootfs/tree/live-build/functions#n123) specifically ``` mount -t tmpfs none "$mountpoint/var/lib/apt" ``` Which means that inside the chroot that the binary hook works on, the `/var/lib/apt` directory is empty... including the `/var/lib/apt/extended_states` file which is used to store whether a package was auto installed or not. The same goes the other way - any changes to the `/var/lib/apt/extended_states` file inside chroot that the binary hook is changing are not reflected in the final image due to the `teardown_mountpoint` (see https://git.launchpad.net/livecd-rootfs/tree/live-build/functions#n152) not persisting any of those changes. The end result being. * If a package is removed in the binary hook then the resulting image will likely have autoremovable packages at first launch * Any package and their dependencies installed in a binary hook will all be marked as manually installed. SRU ==== [ Impact ] * Packages installed in a binary hook are marked as manually installed - even the dependencies of packages [ Test Plan ] * Build test images and remove a package with dependencies. * Confirm that the dependencies are marked as autoremovable. * Confirm there are packages marked as auto installed [ Where problems could occur ] * Is any dependent packages are not marked as autremovable. * If no packages are marked as auto installed
2023-10-19 16:22:50 Launchpad Janitor merge proposal linked https://code.launchpad.net/~philroche/livecd-rootfs/+git/livecd-rootfs/+merge/454058
2023-10-19 16:23:02 Philip Roche livecd-rootfs (Ubuntu Lunar): status Confirmed Fix Committed
2023-10-19 17:12:31 Launchpad Janitor merge proposal linked https://code.launchpad.net/~philroche/livecd-rootfs/+git/livecd-rootfs/+merge/454065
2023-10-19 17:12:51 Philip Roche livecd-rootfs (Ubuntu Jammy): status Confirmed Fix Committed
2023-10-19 17:18:32 Launchpad Janitor merge proposal linked https://code.launchpad.net/~philroche/livecd-rootfs/+git/livecd-rootfs/+merge/454066
2023-10-19 17:18:53 Philip Roche livecd-rootfs (Ubuntu Focal): status Confirmed Fix Committed
2023-10-19 17:23:20 Launchpad Janitor merge proposal linked https://code.launchpad.net/~philroche/livecd-rootfs/+git/livecd-rootfs/+merge/454067
2023-10-19 17:23:38 Philip Roche livecd-rootfs (Ubuntu Bionic): status Confirmed Fix Committed
2023-10-19 17:27:57 Launchpad Janitor merge proposal linked https://code.launchpad.net/~philroche/livecd-rootfs/+git/livecd-rootfs/+merge/454068
2023-10-19 17:28:18 Philip Roche livecd-rootfs (Ubuntu Xenial): status Confirmed Fix Committed
2023-10-19 17:28:25 Philip Roche livecd-rootfs (Ubuntu): assignee Philip Roche (philroche)
2023-11-30 13:04:15 Philip Roche livecd-rootfs (Ubuntu Xenial): status Fix Committed Fix Released
2023-11-30 13:04:17 Philip Roche livecd-rootfs (Ubuntu Bionic): status Fix Committed Fix Released
2023-12-06 21:47:34 Ubuntu Archive Robot bug added subscriber Steve Langasek
2023-12-07 18:25:19 Andreas Hasenack bug added subscriber Ubuntu Stable Release Updates Team
2023-12-07 18:25:25 Andreas Hasenack bug added subscriber SRU Verification
2023-12-07 18:25:29 Andreas Hasenack tags verification-needed verification-needed-lunar
2023-12-07 18:48:29 Andreas Hasenack tags verification-needed verification-needed-lunar verification-needed verification-needed-jammy verification-needed-lunar
2023-12-07 19:09:40 Andreas Hasenack tags verification-needed verification-needed-jammy verification-needed-lunar verification-needed verification-needed-focal verification-needed-jammy verification-needed-lunar
2023-12-11 17:31:45 Philip Roche tags verification-needed verification-needed-focal verification-needed-jammy verification-needed-lunar verification-done verification-done-focal verification-done-jammy verification-done-lunar
2024-01-04 22:03:19 Andreas Hasenack removed subscriber Ubuntu Stable Release Updates Team
2024-01-04 22:04:53 Launchpad Janitor livecd-rootfs (Ubuntu Lunar): status Fix Committed Fix Released
2024-01-12 15:43:04 Ubuntu Archive Robot bug added subscriber Utkarsh Gupta
2024-01-15 15:19:59 Łukasz Zemczak bug added subscriber Ubuntu Stable Release Updates Team
2024-01-15 15:20:05 Łukasz Zemczak tags verification-done verification-done-focal verification-done-jammy verification-done-lunar verification-done-focal verification-done-lunar verification-needed verification-needed-jammy
2024-01-16 18:26:54 Philip Roche tags verification-done-focal verification-done-lunar verification-needed verification-needed-jammy verification-done verification-done-focal verification-done-jammy verification-done-lunar verification-needed
2024-01-16 18:27:08 Philip Roche tags verification-done verification-done-focal verification-done-jammy verification-done-lunar verification-needed verification-done verification-done-focal verification-done-jammy verification-done-lunar
2024-01-17 11:44:47 Launchpad Janitor livecd-rootfs (Ubuntu Jammy): status Fix Committed Fix Released
2024-02-02 14:33:25 Timo Aaltonen tags verification-done verification-done-focal verification-done-jammy verification-done-lunar verification-done-jammy verification-done-lunar verification-needed verification-needed-focal
2024-02-06 11:40:04 Philip Roche tags verification-done-jammy verification-done-lunar verification-needed verification-needed-focal verification-done-focal verification-done-jammy verification-done-lunar verification-needed
2024-02-12 11:00:46 Launchpad Janitor livecd-rootfs (Ubuntu Focal): status Fix Committed Fix Released