Comments (9)
I suspect this is because 22.04 uses Subiquity and overlay file systems, whereas 20.04 did not.
I'll look into this.
from cubic.
The same happened to me. The base image I imported was also ubuntu22.04.3.
When I installed nfs, rcpbind was automatically installed and an _rpc user was created, but the user was not saved on the new host.
By the way, the contents of the /etc/fstab file I modified are not saved either. Is this a similar problem? @PJ-Singh-001
from cubic.
I have a similar situation.
I did install additional packages in the terminal, but after generating iso and installed on the hardware, those packages are not there.
It took changes from the Pressed/user-data thought.
from cubic.
I have a similar situation. I did install additional packages in the terminal, but after generating iso and installed on the hardware, those packages are not there. It took changes from the Pressed/user-data thought.
@misiek303,
Your question regarding packages was answered in Issue #295, Installed packages via apt in Cubic Terminal don't exist in the final ISO.
from cubic.
I will assume you are customizing Ubuntu Server 22.04 ISO, which uses the Subiquity installer, and not the 22.04 Desktop ISO.
You will need to install using the minimal install option, as described in Issue #295, Installed packages via apt in Cubic Terminal don't exist in the final ISO).
You can create users using the adduser
command as described in Issue #3, How to create custom users on the login screen?. I suggest using adduser
instead of useradd
; you can read about the options the adduser
command takes (such as -M
to not create a home directory) on the man page.
However, you should not have to manually create this user if you install using the minimal install option I described above.
from cubic.
Ubuntu Server 22.04 uses the Subiquity installer. You will need to install using the minimal install option, as described in Issue #295, Installed packages via apt in Cubic Terminal don't exist in the final ISO).
The /etc/fstab
file is overwritten by the installer, because the installer does its own partitioning.
You can use one these techniques to work around this:
- Keep a customized version of your
fstab
file in/usr/local/etc
. Then copy/etc/local/fstab
to/etc/
using thelate-commands
command incloud-init
. - Using the
late-commands
command incloud-init
, append the necessary line to/etc/fstab
with the commandecho "<your fstab line>" | tee --append /etc/fstab
.
from cubic.
Ubuntu Server 22.04 uses the Subiquity installer. You will need to install using the minimal install option, as described in Issue #295, Installed packages via apt in Cubic Terminal don't exist in the final ISO).
The
/etc/fstab
file is overwritten by the installer, because the installer does its own partitioning.You can use one these techniques to work around this:
- Keep a customized version of your
fstab
file in/usr/local/etc
. Then copy/etc/local/fstab
to/etc/
using thelate-commands
command incloud-init
.- Using the
late-commands
command incloud-init
, append the necessary line to/etc/fstab
with the commandecho "<your fstab line>" | tee --append /etc/fstab
.
I've tried the second way, but still haven't customized what I need in /etc/fstab.
late-commands:
- echo "/mnt/var /var none bind" | tee --append /etc/fstab
- echo "/mnt/home /home none bind" | tee --append /etc/fstab
- echo "/mnt/tmp /tmp none bind" | tee --append /etc/fstab
iso:ubuntu-22.04.3-live-server-amd64.iso
mysystem:ubuntu 20.04 desktop
from cubic.
I think the format needs to be something like this:
#cloud-config
autoinstall:
version: 1
late-commands:
- curtin in-target --target=/target -- <your shell command>
Where <your shell command>
should be replaced with your shell command.
I suggest making sure the late-commands
works by creating a simple test file first to ensure you have the correct format in your couid-init
file.
#cloud-config
autoinstall:
version: 1
late-commands:
- curtin in-target --target=/target -- touch /opt/test.txt
from cubic.
@PJ-Singh-001 Hi, I have the similar issue.
I installed docker.io and dnsmasq in the Terminal part. During the installation, user dnsmasq and group docker is created.
When finished the ISO and install a server with this ISO, the user dnsmasq and group docker are missing which cause dnsmasq and docker failed to start.
Would you please help to take a look on this? Thank you in adavnace!
from cubic.
Related Issues (20)
- How do I change Linux MInt's Start Menu Icon in my distribution? HOT 1
- How To Change The DE In The "Live Environment" HOT 1
- Ubuntu Server 22.04 Disable Subiquity Installer HOT 2
- The ubuntu(20.04.5) image containing ros1 made by Cubic deletes the ros1 function package HOT 6
- Can the zstd compression level settings be modified? HOT 3
- Compressed ISO used xz are security risk ? HOT 2
- Have problems if editing an Ubuntu noble ISO in an host Ubuntu Focal ? HOT 4
- Ubuntu 24.04 (beta) bootstrapper/installer seemingly crashes under install of live image
- Cubic reference removal from project HOT 4
- Any plans to make cubic properely support ubuntu 24.04? HOT 3
- Cubic breaks iso HOT 2
- Why can't I access the Typical and Minimal packages page? HOT 2
- Missing user after new install of Ubuntu 22.04 HOT 3
- How to customize the Plymouth Splash Screen on Ubuntu 24.04?
- Virtual environment state save HOT 1
- multi-user mode broken on 24.04 variants
- generated .iso doesn't boot once burnt to USB stick
- Cubic doesn't work together with autoinstall identity. HOT 1
- 24.04 Custom ISOs not reflecting snap removals / some installed app icons not displayed HOT 2
- Errors when install cubic on ubuntu 24.04 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cubic.