carbon-config

config submodule of carbon-core-system
git clone https://ccx.te2000.cz/git/carbon-config
Log | Files | Refs

s6-rc-mount.aat (620B)


      1 @include common.aat
      2 @include rc-common.aat
      3 |### write_oneshot ###
      4 |function write_oneshot() {
      5 |oneshot(svc_name, dependencies())
      6 |if(down_umount()) {
      7 /{{svc_name}}/down	cN	s6-umount {{q_file}}	m644
      8 |} else if (down_readonly()) {
      9 /{{svc_name}}/down	cN	mount -o remount,ro {{q_file}}	m644
     10 |}
     11 /{{svc_name}}/up
     12 CN	# mount {{get("source")}} on {{mtp}}
     13 |if(boolean("mkdir")) {
     14 	if { mkdir -p {{q_file}} }
     15 |}
     16 	if -n -t { mount -t {{q_vfstype}} -o {{q_remount_options}} {{q_spec}} {{q_file}} }
     17 	mount -t {{q_vfstype}} -o {{q_options}} {{q_spec}} {{q_file}}
     18 |}
     19 |### include main loop / parsing code ###
     20 @awk parse_fs.include.awk