** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-meta in Ubuntu.
https://bugs.launchpad.net/bugs/1974483

Title:
  autoinstall ssh:install-server:false is misleading in 22.04

Status in subiquity:
  Fix Released
Status in livecd-rootfs package in Ubuntu:
  Fix Released
Status in ubuntu-meta package in Ubuntu:
  Fix Released
Status in livecd-rootfs source package in Jammy:
  Fix Committed
Status in ubuntu-meta source package in Jammy:
  Fix Committed

Bug description:
  [ Impact ] 
  openssh-server is always installed to the target machine regardless of the 
user's explicit choice to not have it installed. 

  Backporting the fix will allow image builds to pick up it up and
  become available for the next point release.

  The upload fixes the bug by removing ssh-import-id from the server-
  minimal seed and meta-package such that it's not part of the base
  layer copied over during install.

  [ Test Plan ]

  live images -- Test 1:
   1. Download the latest server installer image from 
https://cdimage.ubuntu.com/ubuntu-server/jammy/daily-live/
   2. Perform a regular install using the image and on the "SSH configuration" 
screen make sure "Install OpenSSH server" is NOT selected.
   3. Finish the install and reboot the machine.
   4. Login to the rebooted machine using the credentials provided during 
install.
   5. Using "apt-cache policy openssh-server" and "apt-cache policy 
ssh-import-id" confirm neither are installed.

  live images -- Test 2:
  - Perform Test 1 but instead opt-in to installing openssh-server and ensure 
it is installed in the target system.

  live-images -- Test 3:
  - Perform Test 2 but in a completely offline fashion.

  pre-installed images:
  - Download the latest preinstalled image from: 
https://cdimage.ubuntu.com/ubuntu-server/jammy/daily-preinstalled/
  - Boot the image and, using the same commands as above, confirm 
openssh-server and ssh-import-id ARE installed

  [ Where problems could occur ]
  - openssh-server could be included in the build through other means than 
identified by the proposed upload, causing the package to be still installed by 
default.
  - openssh-server and ssh-import-id could fail to become part of the pool, 
prohibiting offline install of the packages.
  - Changes to the seeds could cause preinstalled images to lack the package.
  - The image build(s) may produce errors if they rely on openssh-server or 
ssh-import-id already being available in a layer in which it's now no longer 
included. (I can't say it's likely but it is worth mentioning)

  [ Other Info ]
   
   * I have built test images for ubuntu-cpc, both minimized and non-minimized, 
with my seed changes and verified those images will still correctly contain 
ssh-import-id and open-ssh-server

  
  [ Original Description]

  With 22.04, openssh-server is baked into the image curtin copies to
  the target. The ssh:install-server key no longer controls whether
  openssh-server gets installed. It should be easy enough to have the
  bit of code that installs openssh-server when the key is true also
  remove it when the key is false.

To manage notifications about this bug go to:
https://bugs.launchpad.net/subiquity/+bug/1974483/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to