Unattended Linux Mint Installation 18.3 problem

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
bianco

Unattended Linux Mint Installation 18.3 problem

Post by bianco »

I am trying to install linux mint 18.3/17.3 as a vm using a preseed, to automate the process

It seems not all the configuration is being applied from the preseed. It does all the settings according to the previous expect for the IP Configuration (Statically assigned) and the ssh installation/login

I have pasted my preseed below that is installed onto the iso

Code: Select all

#### Contents of the preconfiguration file
# Localization
d-i debian-installer/locale string en_US
d-i time/zone string America/Vancouver
d-i console-setup/layoutcode string en

# Keyboard selection.
# Disable automatic (interactive) keymap detection.
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us


#############
#
# network settings
#
#############
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/choose_interface select auto
d-i netcfg/confirm_static                                   boolean     true
d-i netcfg/disable_dhcp                                     boolean     true
#d-i netcfg/dhcp_timeout                                     string      5
d-i netcfg/get_hostname                                     string      {{hostname}}
d-i netcfg/get_domain                                       string      unassigned-domain
d-i netcfg/get_nameservers                                  string      192.168.25.254
d-i netcfg/get_ipaddress                                    string      {{ipaddress}}
d-i netcfg/get_netmask                                      string      255.255.255.0
d-i netcfg/get_gateway                                      string      192.168.25.254


# Account setup
d-i passwd/user-fullname string {{username1}}
d-i passwd/username string {{username2}}
d-i passwd/user-password password {{password1}}
d-i passwd/user-password-again password {{password2}}
d-i user-setup/allow-password-weak boolean true
d-i passwd/auto-login boolean true


# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true

# Partitioning
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
#simple recipe
#d-i partman-auto/choose_recipe select home
#individual receipe
#the next line is one line !
d-i partman-auto/expert_recipe string \
	seperate-home :: \
		30000 10000 30000 ext4 \
			$primary{ } $bootable{ } \
			method{ format } format{ } \
			use_filesystem{ } filesystem{ ext4 } \
			mountpoint{ / } \
		. \
		1024 4096 200% linux-swap \
			method{ swap } format{ } \
		. \
		100 10000 1000000000 ext4 \
			method{ format } format{ } \
			use_filesystem{ } filesystem{ ext4 } \
			mountpoint{ /home } \
		.

d-i partman/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


### Package selection
tasksel tasksel/first multiselect openssh-server
d-i pkgsel/include string openssh-server

################################################################################
### Boot loader installation
################################################################################

d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true



# I tried adding commands in the place of 'string' (2 lines below) with no luck.
# if you want to start commands after the installation
# ubiquity ubiquity/success_command string 

ubiquity ubiquity/summary note
ubiquity ubiquity/reboot boolean true


# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note

# This will prevent the installer from ejecting the CD during the reboot,
# which is useful in some situations.
d-i cdrom-detect/eject boolean true

#############
#
# Post Install
#
#############
# Command Line 1: Allow root to SSH.
d-i preseed/late_command string \ sed -i '/PermitRootLogin / s/ .*/ yes/' /target/etc/ssh/sshd_config

isolinux.cfg

Code: Select all

default vesamenu.c32
timeout 100

menu background splash.png
menu title Welcome to Linux Mint 18.3 Cinnamon 64-bit

menu color screen	37;40      #80ffffff #00000000 std
MENU COLOR border       30;44   #40ffffff #a0000000 std
MENU COLOR title        1;36;44 #ffffffff #a0000000 std
MENU COLOR sel          7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel        37;44   #50ffffff #a0000000 std
MENU COLOR help         37;40   #c0ffffff #a0000000 std
MENU COLOR timeout_msg  37;40   #80ffffff #00000000 std
MENU COLOR timeout      1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07        37;40   #90ffffff #a0000000 std
MENU COLOR tabmsg       31;40   #ffDEDEDE #00000000 std
MENU HIDDEN
MENU HIDDENROW 8
MENU WIDTH 78
MENU MARGIN 15
MENU ROWS 6
MENU VSHIFT 7
MENU TABMSGROW 11
MENU CMDLINEROW 11
MENU HELPMSGROW 16
MENU HELPMSGENDROW 29


default live
label live
  menu label auto-install-mint
  kernel /casper/vmlinuz
  append  file=/cdrom/preseed/mint.seed auto=true priority=critical ubiquity/reboot=true boot=casper initrd=/casper/initrd.lz automatic-ubiquity quiet splash noprompt noshell ---
#menu default
label xforcevesa
  menu label Start in compatibility mode
  kernel /casper/vmlinuz
  append  file=/cdrom/preseed/linuxmint.seed boot=casper xforcevesa nomodeset b43.blacklist=yes initrd=/casper/initrd.lz ramdisk_size=1048576 root=/dev/ram rw noapic noacpi nosplash irqpoll --
label oem
  menu label OEM install (for manufacturers)
  kernel /casper/vmlinuz
  append  file=/cdrom/preseed/linuxmint.seed oem-config/enable=true only-ubiquity boot=casper initrd=/casper/initrd.lz quiet splash --
label check
  menu label Integrity check
  kernel /casper/vmlinuz
  append  boot=casper integrity-check initrd=/casper/initrd.lz quiet splash --
label memtest
  menu label Memory test
  kernel /casper/memtest
label local
  menu label Boot from local drive
  COM32 chain.c32
  APPEND hd0
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
bianco

Re: Unattended Linux Mint Installation 18.3 problem

Post by bianco »

Any help ? : )
bianco

Re: Unattended Linux Mint Installation 18.3 problem

Post by bianco »

Bump!
Locked

Return to “Installation & Boot”