autoinstall Ubuntu 20.04 mount with options nodev/noexec

Spread the love

Anyone knwo how to give mount option in the autoinstall config ?
i tried different method without success.
it’s my user-data conf but the mount option is ignored during the install :
version: 1
– network
locale: fr_FR
layout: fr
variant: fr
hostname: ubuntu-server
username: ubuntu
– grub_device: true
id: disk-vda
name: ”
path: /dev/vda
preserve: false
ptable: gpt
type: disk
wipe: superblock
– device: format-9
id: mount-10
path: /tmp
type: mount
options: ‘nodev,noexec,nosuid’
– device: format-10
id: mount-11
path: /data
type: mount
options: ‘nodev,noexec,nosuid’
– device: format-11
id: mount-12
path: /var/log
type: mount
options: ‘nodev,noexec,nosuid’

but when i check the code of curtin => in line 1196 the options exist .
def mount_handler(info, storage_config):
“”” Handle storage config type: mount
info = {
‘id’: ‘rootfs_mount’,
‘type’: ‘mount’,
‘path’: ‘/’,
‘options’: ‘defaults,errors=remount-ro’,
‘device’: ‘rootfs’,
Mount specified device under target at ‘path’ and generate
fstab entry.
state = util.load_command_environment(strict=True)
mount_apply(mount_data(info, storage_config),
target=state.get(‘target’), fstab=state.get(‘fstab’))

if it works as I expected, I can put the options nodev | noexec | nosuid … an idea?

X ITM Cloud News


Leave a Reply

Next Post

Xbindkeys is not working

Fri Sep 11 , 2020
Spread the love          xbindkeys version:1.8.6; Ubuntu version 18.04 LTS In the config file of the xbindkeys I have the following command “xte ‘key a'” control+o but when I run xbindkeys in the terminal, and press control +o, nothing happens. Pressing control + o makes the terminal cursor turn into a black […]

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware