startup actions in custom ISO images

3 posts / 0 new
Last post
#1 Sat, 2016-05-28 03:10
daryl314
  • daryl314's picture
  • Offline
  • Last seen: 1 year 10 months ago
  • Joined: 2016-05-28

Hello,

I followed the instructions in the wiki page to create a custom ISO image. I have packages installed but would like to execute some commands (such as starting an SSH server) when the ISO image boots. How would I go about including files (like the SSH server configuration) in the ISO and specifying startup commands?

Thanks,
Daryl

Sat, 2016-05-28 08:24
AmatCoder
  • AmatCoder's picture
  • Offline
  • Last seen: 1 year 4 months ago
  • Joined: 2013-10-18

I never did this, but I think that you need an apkovl file created with lbu.

And then something like make PROFILE=alpine-custom APKOVL=name.apkovl.tar.gz iso ('name' must be the same as the hostname).

Sat, 2016-05-28 08:43
AmatCoder
  • AmatCoder's picture
  • Offline
  • Last seen: 1 year 4 months ago
  • Joined: 2013-10-18

It seem that name.apkovl.tar.gz can not be used locally (!?).
From the wiki:

Quote:
Alpine ISO Requires the OVL Volume to be hosted on a web server. If you don't have one you can run busybox's httpd temporarily

So if you have the apkovlfile in your home folder you can do:

$ busybox httpd -p 127.0.0.1 -h /home/user
$ make PROFILE=alpine APKOVL=http://127.0.0.1/name.apkovl.tar.gz iso
$ pkill busybox

Log in or register to post comments