Closed attilabody closed 1 year ago
Any suggestions how to find the root with lsblk on your system, that is compatible with simple setups?
So what could the replacement of following be:
rootdev=$(lsblk -pilno name,type,mountpoint | grep -G 'part /$')
rootdev=${rootdev%% *}
From the build script rootdev and pkroot is only used to prevent the user from formatting their own root.
You could just edit the script and remove the parts with rootdev and pkroot.
Closed with merging pull request
I have a fairly complex setup with multiple subvolumes mounted to different points of the tree. lsblk output:
lsblk -pilno name,type,mountpoint output:
There is no line that ends with "/", so the script does not find the rootdev.
Hint: Dockerize?