Browse Source

Fixed initramfs_install_overlay() to delete files before overriding them, because if they are symlinks the referenced file gets replaced. ow!

karasz/new-early
Alejandro Mery 17 years ago
parent
commit
d15cdfd9e1
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      target/share/initramfs.in

+ 4
- 3
target/share/initramfs.in

@ -1,11 +1,11 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
#
# Filename: target/share/initramfs.in
# Copyright (C) 2007 - 2008 The OpenSDE Project
#
#
# More information can be found in the files COPYING and README.
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
@ -57,6 +57,7 @@ initramfs_install_overlay() {
exec|txt)
echo_status "injecting $target ($type)"
mkdir -p "$targetdir"
[ ! -e "$rootfs/$target" ] || rm -f "$rootfs/$target"
cp -f "$file" "$rootfs/$target"
chmod $mode "$rootfs/$target"
;;

Loading…
Cancel
Save