[Bug 2035282] [NEW] ubuntu-server installer images contain extraneous /etc/apt/preferences.d.save directory

Michael Hudson-Doyle 2035282 at bugs.launchpad.net
Tue Sep 12 20:45:28 UTC 2023


Public bug reported:

mwhudson at orcrist:~$ unsquashfs -lls ~/Downloads/livecd.ubuntu-server.ubuntu-server-minimal.ubuntu-server\ \(1\).squashfs | grep -F preferences.d
drwxr-xr-x root/root                70 2023-09-12 18:53 squashfs-root/etc/apt/preferences.d
-rw-r--r-- root/root               442 2023-09-12 18:53 squashfs-root/etc/apt/preferences.d/ubuntu-pro-esm-apps
-rw-r--r-- root/root               434 2023-09-12 18:53 squashfs-root/etc/apt/preferences.d/ubuntu-pro-esm-infra
drwxr-xr-x root/root                70 2023-09-12 18:53 squashfs-root/etc/apt/preferences.d.save
-rw-r--r-- root/root               442 2023-09-12 18:53 squashfs-root/etc/apt/preferences.d.save/ubuntu-pro-esm-apps
-rw-r--r-- root/root               434 2023-09-12 18:53 squashfs-root/etc/apt/preferences.d.save/ubuntu-pro-esm-infra

We create this directory with a chroot hook but clean it up with code in
auto/build:

	if [ -d chroot/etc/apt/preferences.d.save ]; then
		# https://mastodon.social/@scream@botsin.space
		mv chroot/etc/apt/preferences.d.save/* chroot/etc/apt/preferences.d/
		rmdir chroot/etc/apt/preferences.d.save
	fi

We need to do this potential clean up for each layer in
lb_chroot_layered.

** Affects: livecd-rootfs (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/2035282

Title:
  ubuntu-server installer images contain extraneous
  /etc/apt/preferences.d.save directory

Status in livecd-rootfs package in Ubuntu:
  New

Bug description:
  mwhudson at orcrist:~$ unsquashfs -lls ~/Downloads/livecd.ubuntu-server.ubuntu-server-minimal.ubuntu-server\ \(1\).squashfs | grep -F preferences.d
  drwxr-xr-x root/root                70 2023-09-12 18:53 squashfs-root/etc/apt/preferences.d
  -rw-r--r-- root/root               442 2023-09-12 18:53 squashfs-root/etc/apt/preferences.d/ubuntu-pro-esm-apps
  -rw-r--r-- root/root               434 2023-09-12 18:53 squashfs-root/etc/apt/preferences.d/ubuntu-pro-esm-infra
  drwxr-xr-x root/root                70 2023-09-12 18:53 squashfs-root/etc/apt/preferences.d.save
  -rw-r--r-- root/root               442 2023-09-12 18:53 squashfs-root/etc/apt/preferences.d.save/ubuntu-pro-esm-apps
  -rw-r--r-- root/root               434 2023-09-12 18:53 squashfs-root/etc/apt/preferences.d.save/ubuntu-pro-esm-infra

  We create this directory with a chroot hook but clean it up with code
  in auto/build:

  	if [ -d chroot/etc/apt/preferences.d.save ]; then
  		# https://mastodon.social/@scream@botsin.space
  		mv chroot/etc/apt/preferences.d.save/* chroot/etc/apt/preferences.d/
  		rmdir chroot/etc/apt/preferences.d.save
  	fi

  We need to do this potential clean up for each layer in
  lb_chroot_layered.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2035282/+subscriptions




More information about the foundations-bugs mailing list