Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    You really should file an issue with Microsoft to get their shitty script fixed, if you're a customer. That said, I don't understand what the final systemd unit is for. Which script is it executing and what is that script supposed to be doing? Commented Jan 14, 2024 at 2:17
  • Requesting support tickets that not related to billing issues requires a subscription, if they really wanna fix this: quick n'dirty: Insert ` | head -n 1` after /proc/mounts or more comprehension: Using for to iterate each newline-separated(but still having possible to get \n in path) path in $dev_resource_mp then wrapping $warn_file and that following if block into it. Commented Jan 14, 2024 at 2:33
  • @muru The systemd unit I created is just a wrapper around /etc/rc.local that moved to /path/to/the/script.sh to make sure it only gets started AFTER ephemeral-disk-warning.service created the /mnt/DATALOSS_WARNING_README.txt without silly chattr +i /mnt then exited and other units that using paths under /mnt also wait till the unit exited. Commented Jan 14, 2024 at 2:39