building pi image fails after "/proc/ not mounted" error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Image |
In Progress
|
Undecided
|
Paul Mars |
Bug Description
I am just getting started experimenting with building Pi images to eventually produce a flavor image. I was attempting to build the default desktop raspi image. Possibly I am missing a step.
Tried from both a Pi4B 8Gb and also on a CM4, attempting from both Mantic and Jammy. Error is the same.
Using the following steps provided:
- sudo snap install --classic ubuntu-image
- git clone https:/
- sudo apt install livecd-rootfs
- sudo ubuntu-image classic -O output/ ubuntu-
The build failed with the following output:
sam@pi-cm4:~$ sudo ubuntu-image classic -O output/ ubuntu-
[0] parse_image_
[1] calculate_states
[2] make_temporary_
[3] determine_
[4] build_gadget_tree
[5] prepare_gadget_tree
[6] load_gadget_yaml
[7] verify_
[8] germinate
[9] create_chroot
[10] install_packages
[11] prepare_image
[12] preseed_image
[13] customize_fstab
[14] perform_
Error: Error running script "/usr/sbin/chroot /tmp/ubuntu-
⚠️ /proc/ is not mounted. This is not a supported mode of operation. Please fix
your invocation environment to mount /proc/ and /sys/ properly. Proceeding anyway.
Your mileage may vary.
Created symlink /etc/systemd/
⚠️ /proc/ is not mounted. This is not a supported mode of operation. Please fix
your invocation environment to mount /proc/ and /sys/ properly. Proceeding anyway.
Your mileage may vary.
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled or disabled using systemctl.
Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
instance name specified.
⚠️ /proc/ is not mounted. This is not a supported mode of operation. Please fix
your invocation environment to mount /proc/ and /sys/ properly. Proceeding anyway.
Your mileage may vary.
Created symlink /etc/systemd/
sudo: unknown user oem
sudo: error initializing audit plugin sudoers_audit
So on an attempt starting with the server pi image instead of the desktop image, these steps completed without error.
Likewise, dropping to a TTY on the desktop image instead of using Gnome terminal / Tilix also works properly.
So I am assuming there is no issue here, aside from how I have been running it...