All of lore.kernel.org
 help / color / mirror / Atom feed
* Problems with postinstall
@ 2014-06-05 10:44 Neuer User
  2014-06-06  6:16 ` Neuer User
  0 siblings, 1 reply; 9+ messages in thread
From: Neuer User @ 2014-06-05 10:44 UTC (permalink / raw)
  To: yocto

Hi

I am desperately trying to get some postinstall scripts working. They
should replace some defualt files with custom files I have. They are all
in one package. The package looks like this:

do_install() {
    install -d ${D}${sbindir}
    install -m 0700 ${S}/sbin/* ${D}${sbindir}

    install -d ${D}${bindir}
    install -m 0755 ${S}/bin/LEDstatus ${D}${bindir}

    install -d ${D}/etc/udev/rules.d
    install -m 0644 ${S}/udev/* ${D}/etc/udev/rules.d/

    install -d ${D}/etc/ssh
    install -m 0600 ${S}/ssh/ssh_* ${D}/etc/ssh/
    install -m 0644 ${S}/ssh/authorized_keys ${D}/etc/ssh/

    install -d ${D}/etc/gnupg
    install -m 0600 ${S}/gnupg/trustedkeys.gpg ${D}/etc/gnupg/
}

# Overwrite some configuration data with specific files
pkg_postinst_${PN} () {
    install -o root -g root -m 0600 ${S}/ssh/sshd_config ${D}/etc/ssh/
    install -m 0755 ${S}/etc/rc.local ${D}/etc/
    install -m 0644 ${S}/etc/watchdog.conf ${D}/etc/
    install -m 0400 ${S}/etc/shadow ${D}/etc/
    install -m 0440 ${S}/etc/sudoers ${D}/etc/
    install -d ${D}/etc/default
    install -o root -g root -m 0644 ${S}/etc/default-ntpdate
${D}/etc/default/ntpdate
}

RDEPENDS_${PN} += "ntpdate udev ssh sudo"

FILES_${PN} += "/*"


I even tried changing the ownership of the files, but that did not
change aything.

Am I doing this completely wrong?

Thanks for any hints

Michael



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-06-07 10:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-05 10:44 Problems with postinstall Neuer User
2014-06-06  6:16 ` Neuer User
2014-06-06  7:11   ` Søren Holm
2014-06-06 10:54   ` Paul Barker
2014-06-06 11:08     ` Neuer User
2014-06-06 11:19       ` Jacob Kroon
2014-06-06 11:24         ` Neuer User
2014-06-06 12:31       ` Burton, Ross
2014-06-06 12:37         ` Neuer User

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.