Ignore:
Timestamp:
2010-10-05T21:24:12+02:00 (6 years ago)
Author:
jow
Message:

[package] base-files:

  • add sysupgrade support for keepfile hints
    • introduces /lib/upgrade/keep.d/ for per-package keepfile lists
    • introduces /etc/sysupgrade.conf for user defined keepfile hints
  • prime /lib/upgrade/keep.d/base-files-essential to keep sysupgrade usable for images without opkg
  • change sysupgrade to build the keepfile list from /lib/upgrade/keep.d/, /etc/sysupgrade.conf and opkg list-changed-conffiles
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/sbin/sysupgrade

    r23233 r23258  
    5656add_uci_conffiles() { 
    5757        local file="$1" 
    58         ( find /etc/config /etc/passwd /etc/group /etc/dropbear \ 
    59                 /etc/firewall.user /etc/rc.local -type f; 
     58        ( find $(sed -ne '/^[[:space:]]*$/d; /^#/d; p' \ 
     59                /etc/sysupgrade.conf /lib/upgrade/keep.d/* 2>/dev/null) \ 
     60                -type f 2>/dev/null; 
    6061          opkg list-changed-conffiles ) | sort -u > "$file" 
    6162        return 0 
Note: See TracChangeset for help on using the changeset viewer.