Skip to content

balena-io-experimental/balena-localvolume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Automounting of an external USB disk

Add the following udev rule to config.json:

  "os": {
    "udevRules": {
      "66": "ACTION==\"add\", SUBSYSTEMS==\"usb\", SUBSYSTEM==\"block\", ENV{ID_FS_USAGE}==\"filesystem\", RUN{program}+=\"/usr/bin/systemd-mount --no-block --automount=yes --bind-device --options=fmask=111,dmask=000,noexec,nosuid,nodev,flush,sync --collect $devnode /run/mount/ext\"\n"
    }
  },

The device will be automatically mounted under /run/mount/ext.

About

Example app to bind a local directory into a volume

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published