install.h 574 B

1234567891011121314
  1. /* Installer internals shared by the `install` command and the network
  2. * persistent-update path. */
  3. #ifndef INSTALL_H
  4. #define INSTALL_H
  5. /* Write a kernel and an NBROOT1 rootfs image to an installed NebOS disk.
  6. * `rootfs` points at a 512-byte header followed by `rsize - 512` pack bytes.
  7. * Used by `install <target> self` and by the KXI2 net-install path; the
  8. * target's partition 4 is preserved. Returns 0 on success. */
  9. int install_ram_image(const char *target, const void *kernel,
  10. unsigned int ksize, const void *rootfs,
  11. unsigned int rsize);
  12. #endif