adamant-kite-43734
05/26/2023, 1:47 PMwitty-table-40840
05/30/2023, 7:51 AM/run/cos/cos-layout.env
configuration file. Here is an example how to generate that file with the size set to 25%: https://github.com/rancher/elemental/blob/6e4e5808bc781c920de360353c52738c6fd67272/framework/files/system/oem/01_elemental-rootfs.yaml#L31few-jordan-3349
05/30/2023, 9:24 AMname: "Customize Rootfs Layout Settings"
stages:
rootfs:
- if: '[ ! -f "/run/cos/recovery_mode" ]'
name: "Layout configuration"
environment_file: /run/cos/cos-layout.env
environment:
OVERLAY: "tmpfs:75%"
is this env variable than applied for all tmpfs mounts?
In my case i just want to increase /tmp. Would it be aslo an alternative to just use systemd tmp.mount and change size there?
[Unit]
Description=Temporary Directory /tmp
Documentation=<https://systemd.io/TEMPORARY_DIRECTORIES>
Documentation=man:file-hierarchy(7)
Documentation=<https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems>
ConditionPathIsSymbolicLink=!/tmp
DefaultDependencies=no
Conflicts=umount.target
Before=local-fs.target umount.target
After=swap.target
[Mount]
What=tmpfs
Where=/tmp
Type=tmpfs
Options=mode=1777,strictatime,nosuid,nodev,size=75%%,nr_inodes=1m
thamks for the help!few-jordan-3349
05/30/2023, 1:37 PMOVERLAY="tmpfs:25%"
is 25% when i check the .env file,
but the /tmp size is 50%. It seems that this env is not applied for /tmp?witty-table-40840
05/31/2023, 6:53 AMOVERLAY
is only used for the mounting of the overlayfs.witty-table-40840
05/31/2023, 6:55 AMfew-jordan-3349
05/31/2023, 7:19 AMwitty-table-40840
05/31/2023, 7:20 AMfew-jordan-3349
05/31/2023, 7:25 AMfew-jordan-3349
05/31/2023, 7:47 AMwitty-table-40840
05/31/2023, 7:53 AMfew-jordan-3349
05/31/2023, 7:55 AMwitty-table-40840
05/31/2023, 8:00 AM