0

I'm trying to create a ubuntu server installation media with pre-defined programs and settings. for that I am using Cubic. Through the chroot terminal I am able to install all the software that I need and this works very well.

I would also like to customize the installation screen with some pre-defined settings, such as the user and your password, among others, and would like this information not be requested during installation.

for this I created a preseed with the settings that I want to be automatic and added in the grub the boot parameters of FILE = / cdrom / preseed / mv.seed and auto = true however the settings continue to appear when I try to install.

as I am using boot by UEFI I know it is the file /boot/grub/grub.cfg that is submitted to select my installation and not /isolinux/txt.cfg

would anyone have the idea why the preseed is not loaded?

grub.cfg ------------------------------------------------------------

if loadfont /boot/grub/font.pf2; then set gfxmode = auto insmod efi_gop insmod efi_uga insmod gfxterm terminal_output gfxterm fi

set menu_color_normal = white / blue set menu_color_highlight = black / light-blue

set timeout = 5 menuentry "Install MultivisOs Server" { set gfxpayload = keep linux / casper / vmlinuz file = / cdrom / preseed / mv.seed boot = casper auto = true quiet splash --- initrd / casper / initrd }

menuentry "Check disc for defects" { set gfxpayload = keep linux / casper / vmlinuz boot = casper integrity-check quiet splash --- initrd / casper / initrd }

/preseed/mv.seed------------------------------------------------

select language

d-i debian-installer / language string en

netcfg will choose an interface that has link if possible. This makes it

skip displaying the list if there is more than one interface.

d-i netcfg / choose_interface select auto

If you want the preconfiguration file to work on both systems and

without a dhcp server, uncomment these lines and the static network

configuration below.

d-i netcfg / dhcp_failed note d-i netcfg / dhcp_options select Configure network manually

Static network configuration.

#

IPv4 example

d-i netcfg / get_ipaddress string 192.168.1.237 d-i netcfg / get_netmask string 255.255.255.0 d-i netcfg / get_gateway string 192.168.1.1 d-i netcfg / get_nameservers string 192.168.1.1 d-i netcfg / confirm_static boolean true

If you want to force hostname, regardless of what the DHCP

server returns or what the reverse DNS entry for the IP is, uncomment

and adjust the following line.

d-i netcfg / hostname string Multivis

To create a normal user account.

d-i passwd / user-fullname string comtex d-i passwd / username string comtex

Normal user's password, either in clear text

d-i passwd / user-password password Comtex @ 457 d-i passwd / user-password-again password

or encrypted using a crypt (3) hash.

d-i passwd / user-password-crypted password [crypt (3) hash]

Create the first user with the specified UID instead of the default.

d-i passwd / user-uid string 1010

The installer will warn you about weak passwords. If you are sure you know

what you're doing and want to override it, uncomment this.

d-i user-setup / allow-password-weak boolean true

If the system has free space you can choose to only partition that space.

This is only honored if partman-auto / method (below) is not set.

Alternatives: custom, some_device, some_device_crypto, some_device_lvm.

d-i partman-auto / init_automatically_partition select biggest_free

Alternatively, you may specify a disk to partition. If the system has only

one disk the installer will default to using that, but otherwise the device

name must be given in traditional, non-devfs format (so eg / dev / sda

and not e.g. / dev / discs / disc0 / disc).

For example, to use the first SCSI / SATA hard disk:

d-i partman-auto / disk string / dev / sda

In addition, you'll need to specify the method to use.

The presently available methods are:

- regular: use the usual partition types for your architecture

- lvm: use LVM to partition the disk

- crypto: use LVM within an encrypted partition

d-i partman-auto / regular string method

You can choose one of the three predefined partitioning recipes:

- atomic: all files in one partition

- home: separate / home partition

- multi: separate / home, / var, and / tmp partitions

d-i partman-auto / choose_recipe select atomic

If you just want to change the default filesystem from ext3 to something

else, you can do that without providing a full recipe.

d-i partman / default_filesystem string ext4

This makes partman automatically partition without confirmation, provided

that you told it what to do using one of the above methods.

d-i partman-partitioning / confirm_write_new_label boolean true d-i partman / choose_partition select finish d-i partman / confirm boolean true d-i partman / confirm_nooverwrite boolean true

Avoid that last message about the install being complete.

d-i finish-install / reboot_in_

0

I solved the issue by using the version http://cdimage.ubuntu.com/ubuntu/releases/18.04/release/ubuntu-18.04.2-server-amd64.iso without live

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.