Adding python3 pip, snap packages to an Ubuntu 22.04 image #3114
-
mkosi commit the issue has been seen withUsed host distributionUbuntu 24.04 Used target distributionUbuntu 22.04 Linux kernel version used6.8.40-generic QuestionI'd like to have a few snap packages installed in my Ubuntu 22.04 image. I attempted using a mkosi.prepare and mkosi.postinst script to list out the snap packages I'd like to download (yq, and helm) but was unable to download them using snap. I wonder if these scripts are the correct locations to have the packages installed in the generated image. Used mkosi config
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
My apologies I gave an outdated mkosi.conf file attached are the updated mkosi.conf, postinst script, and a debug file that has the output of mkosi --force --debug. I initially wanted to try using snap inside the image, so I use the chroot extension. Realizing I didn't have network acces, i removed the chroot extension and tried running in the host. mkosi.conf
mkosi.postinst
|
Beta Was this translation helpful? Give feedback.
-
File of debug text without the chroot extension |
Beta Was this translation helpful? Give feedback.
-
@chmjlg Use |
Beta Was this translation helpful? Give feedback.
@chmjlg Use
WithNetwork=yes
to enable network access