Custom post install script

Asked by Johnny

Hi,

I'm using post install script.sh in my PXE environment. But with Cubic, i don't kown where i can put this script.

- Can i create a folder in chroot environment and put my script in it ?

- In my preseed file i have to use :

ubiquity ubiquity/success_command string
in-target /folder/postinstall.sh

d-i preseed/late_command seem not work with ubiquity installer

Do you think it is a good way ?

Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
Cubic Edit question
Assignee:
No assignee Edit question
Solved by:
Johnny
Solved:
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said :
#1

According to:

    https://wiki.ubuntu.com/UbiquityAutomation

the "success_command" is supported by Ubiquity.

I'm no expert on preseeding, but based on the available commands, it looks like this is your only option.

Revision history for this message
Johnny (johnnybee) said :
#2

Thank you for your feedback :) . I think debian-installer and ubiquity can cooperate, but it's a very hardway.....

I will give you a feedback when my preseed will be stable

Best regards

Revision history for this message
Johnny (johnnybee) said :
#3

Hi,

For feedback :

Preseeding with ubiquity is very limited.

Advanced preseeding is perfect for Debian.

For Ubuntu some features are not supported. In addition, Ubuntu will use cloud-init for mass deployment. debian-installer will no longer supported.

Since Ubuntu 20.04, Canonical recommends Subiquity and Cloud-init.

https://help.ubuntu.com/community/CloudInit
https://ubuntu.com/blog/updatable-ubuntu-server-live-installer

For Desktop , debian-installer and preseeding are semi-compatible.

The best way for me is an semi-advanced preseed file with Ansible or Puppet for final configuration management