Comment 15 for bug 1728742

Revision history for this message
Ryan Harper (raharper) wrote : Re: [Bug 1728742] Re: curtin dname for bcache uses unstable devname instead of UUID

On Thu, Feb 1, 2018 at 1:40 PM, Dmitrii Shcherbakov <
<email address hidden>> wrote:

> Ran a few tests.
>
> /etc/maas/preseeds/curtin_userdata
> https://paste.ubuntu.com/26501712/
> early_commands:
> 10_add_ppa: ['sh', '-xc', 'DEBIAN_FRONTEND=noninteractive
> add-apt-repository --yes ppa:raharper/bugfixes']
> # update & upgrade what is there already
> 97_update: ['apt-get', 'update']
> 98_upgrade: ['sh', '-xc', 'DEBIAN_FRONTEND=noninteractive apt-get
> upgrade --yes']
> ...
> system_upgrade:
> enabled: True
>

Your early commands only affect the ephemeral environment, instead you
need to install this in the target like this:

 late_commands:
  01-bugfix-ppa: [curtin, in-target, --, add-apt-repository, -y,
"ppa:raharper/bugfixes"]
  02-update: [curtin, in-target, --, apt-get, update]
  03_install_package: [curtin, in-target, --, apt-get, install,
--assume-yes, bcache-tools]

>
> It seems like /dev/bcache/by-uuid links are set up correctly but labels
> are not written/persisted
>
> https://paste.ubuntu.com/26502111/
>
> It appears to be that there are also no dname rules written in rules.d
> hence dname symlinks are not correct when minor numbers change:
>
> ubuntu@maas-xenial2:~$ grep -RiP dname /lib/udev/rules.d/ ; echo $?
> 1
>
> Not sure if that's my curtin_userdata that is incorrect or something
> wrong happens during the rule rendering.
>
>
> root@maas-xenial2:~# pastebinit curtin-install-cfg.yaml
> http://paste.ubuntu.com/26502171/
>
> root@maas-xenial2:~# pastebinit curtin-install.log
> http://paste.ubuntu.com/26502172/
>
> The package seems to be coming from a ppa correctly based on curtin-
> install.log.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1728742
>
> Title:
> curtin dname for bcache uses unstable devname instead of UUID
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/bcache-tools/+bug/1728742/+subscriptions
>