Skip to content

Commit

Permalink
prepare: Create /etc/os-release instead of /usr/lib/os-release
Browse files Browse the repository at this point in the history
Do not conflict with the filesystem package, rather provide a customized
file as /etc/os-release which should take precedence over /usr/lib/os-release.
  • Loading branch information
plfiorini committed Jan 8, 2017
1 parent fee0969 commit 1dbfd1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/prepare/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def run():
if os.path.exists(sudoers_path):
os.unlink(sudoers_path)

os_release = os.path.join(install_path, "usr", "lib", "os-release")
os_release = os.path.join(install_path, "etc", "os-release")
if os.path.exists(os_release):
os.unlink(os_release)
try:
with open(os_release, "w") as fd:
fd.write('NAME="Liri OS"\n')
Expand Down

0 comments on commit 1dbfd1c

Please # to comment.