Skip to content

Commit

Permalink
added build/GNU/Linux/62_verify_os_release_file.sh to get around the …
Browse files Browse the repository at this point in the history
…symbolic linked /etc/os-release file

close #731
  • Loading branch information
gdha committed Feb 22, 2016
1 parent 6e2d5e3 commit 22a7337
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions usr/share/rear/build/GNU/Linux/62_verify_os_release_file.sh
@@ -0,0 +1,9 @@
# 62_verify_os_release_file.sh
# Because of issue 778 (where /etc/os-release is linked to /usr/lib/os-release) the copy of /etc/os-release fails
# This is the case on Fedora 23

[[ ! -f /etc/os-release ]] && return # if /etc/os-release does not exist just return (pre-systemd distro)

[[ -h $ROOTFS_DIR/etc/os-release ]] && rm -f $ROOTFS_DIR/etc/os-release # if it is a link remove it first

cp $v /etc/os-release $ROOTFS_DIR/etc/os-release >&2

0 comments on commit 22a7337

Please sign in to comment.