]> git.proxmox.com Git - mirror_spl-debian.git/commit - debian/spl-dkms.postinst
Fix the way we handle /etc/hostid
authorCarlos Alberto Lopez Perez <clopez@igalia.com>
Sat, 2 Mar 2013 21:48:42 +0000 (22:48 +0100)
committerCarlos Alberto Lopez Perez <clopez@igalia.com>
Sat, 2 Mar 2013 21:49:05 +0000 (22:49 +0100)
commitcfeaec54339f294af1d3d2813447c02673054776
tree3c1c18fb99cb504b1d8d9113cb87b61791d8c4fc
parent16b165ccad7f3a7f3903bcdec4c3ad7405f335be
Fix the way we handle /etc/hostid

  * /etc/hostid should not be a configuration file.
    This is by policy:
    E.2 Fully-featured maintainer script configuration handling
    http://www.debian.org/doc/debian-policy/ap-pkg-conffiles.html

    This kind of site-specific configuration files should not be added
    to the package files.
    You don't want this file to be removed when you purge the package.

  * Handle the creation on /etc/hostid on zfs-dkms.postinst

    * Check if /etc/hostid exists and is at least 4 bytes size.

      * If it isn't, then write the value returned by "hostid" on /etc/hostid
        taking care of endianness

    * Note that on zfs-dkms.postinst #DEBHELPER# is after this check for
      /etc/hostid. Therefore the stabilization of /etc/hostid will be
      done before the spl mode is built by DKMS.
debian/rules
debian/spl-dkms.postinst
debian/spl.install
debian/spl.postinst [deleted file]