nullpo-head / wsl-distrod

Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
MIT License
1.9k stars 90 forks source link

Fix/build without root #74

Open AndASM opened 1 year ago

AndASM commented 1 year ago

We don't need sudo or root privileges to create files belonging to root in a .tar. Requiring sudo to build can cause compatibility issues, extra difficulty building, and security risks. This branch modifies distrod_packer to pack the opt_distrod.tar.gz as a normal user.

Makefile has also been updated to print a basic help message when make is run. This shows as either make or make help. This was added to increase discoverability for new users, novices, and other potential contributors.

Further updates and cleanup of distrod_packer could be done following this change. Such as removing obsolete functions such as make_dir_deletable. This cleanup has not been done.