Hacker News new | ask | show | jobs
by spydum 3987 days ago
I'm missing something, what actually "executes" the command here echo "$2" > "$btrfs_path/$uuid/$uuid.cmd"

Is something watching for .cmd? Is this some behavior of util-linux (for which, my few seconds couldn't find solid documentation on)?

1 comments

If my dry read of the code is correct, that line is for the "bocker ps" routine to be able to print the command later.

The run command itself is executed next, inside of ip netns exec.

Ahhh, no.. I was looking at line 57 and somehow missed the actual call to $2 on 59. Clear as a bell now