Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use debootstrap --merged-usr with Ubuntu Noble and Debian Sid #59

Merged
merged 3 commits into from
May 6, 2024

Conversation

simondeziel
Copy link
Member

@simondeziel simondeziel commented May 3, 2024

This was successfully tested to build Ubuntu Noble desktop and Debian Sid (which was known broken before).

This can be confirmed with:

```
$ lxc launch ubuntu-daily:24.04 n1
$ lxc exec n1 -- ls -l / | grep bin
lrwxrwxrwx   1 root   root      7 Apr 22 13:08 bin -> usr/bin
drwxr-xr-x   2 root   root      2 Feb 26 12:58 bin.usr-is-merged
lrwxrwxrwx   1 root   root      8 Apr 22 13:08 sbin -> usr/sbin
drwxr-xr-x   2 root   root      2 Mar 31 09:00 sbin.usr-is-merged
```

Signed-off-by: Simon Deziel <[email protected]>
This is taken from `lxd-imagebuilder` failing to `debootstrap` Sid:

```
W: Upgrading non-merged-/usr environments post-bookworm is unsupported. Only do this for CI/QA infrastructure that will be re-bootstrapped rather than upgraded.
W: Failure trying to run: chroot "/root/build/rootfs" /bin/true
W: See /root/build/rootfs/debootstrap/debootstrap.log for details
```

With `debootstrap.log` containing:

```
chroot: failed to run command '/bin/true': No such file or directory
```

Signed-off-by: Simon Deziel <[email protected]>
@simondeziel simondeziel marked this pull request as ready for review May 3, 2024 18:50
@simondeziel simondeziel requested a review from tomponline as a code owner May 3, 2024 18:50
@simondeziel
Copy link
Member Author

@tomponline please take a look when you can as I am sure the server team would appreciate having Debian Sid images for their work (same as canonical/lxd-ci#169). Thanks!

@tomponline tomponline merged commit ac85ed5 into canonical:main May 6, 2024
7 checks passed
@simondeziel simondeziel deleted the debootstrap-merged-usr branch May 6, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants