void-mklive icon indicating copy to clipboard operation
void-mklive copied to clipboard

Issue with --make-rshared /

Open prog-r-amer opened this issue 5 months ago • 5 comments

Hi, I made a reddit post yesterday where I wrote that mklive.sh messed up my bootloader after I deleted the folder generated from void-mklive. I now found out what the issue was.

I have

mount --make-rshared / in my /etc/rc.local.

After using mount --make-rprivate / everything worked flawlessly.

Now my question: Would it make sense to add a check for how / is mounted, and if so are pull requests welcome?

prog-r-amer avatar Jul 02 '25 15:07 prog-r-amer

How did rshared cause this?

Vaelatern avatar Jul 02 '25 17:07 Vaelatern

The unmounting failed, and I deleted the folder with sudo rm -rf

prog-r-amer avatar Jul 02 '25 18:07 prog-r-amer

What kind of solution do you propose here?

Vaelatern avatar Jul 03 '25 17:07 Vaelatern

Maybe something that checks if / is shared via something like findmnt -o PROPAGATION /, but that might be too specific and only to my specific usererror. Or otherwise just a simple text message in the die function like: Care when deleting this folder, it might have unwanted side effects.

It could be that both of those are not the void way though, I just wanted to leave it to discussion. Also now people who do the same shit as me find something when they google it and don't leave a bug report :)

prog-r-amer avatar Jul 03 '25 18:07 prog-r-amer

i think we just need to --make-rslave or something so it unmounts properly

classabbyamp avatar Jul 03 '25 20:07 classabbyamp