How to create an OS image from the repository

Development on core packages and the distribution goes on in here.

How to create an OS image from the repository

Postby lharmon » Wed May 21, 2014 9:12 pm

I am trying to create an ALARM OS image for an Armada 370 device (smileplug 2) using pacstrap and pacman.
I want to end up with a "ArchLinuxARM-smileplug-latest.tar.gz" like tarball.

I have been able to start with the smileplug image, remove unwanted packages, install new packages and create a working image.

However I have been unsuccessful ate creating the same thing starting from scratch.

How was the smileplug image created? Is there a shell script or other tool that is used? Was it created manually?
lharmon
 
Posts: 46
Joined: Fri Apr 19, 2013 7:30 pm

Re: How to create an OS image from the repository

Postby WarheadsSE » Thu May 22, 2014 1:48 am

They are all made with a combination of:
  • pacstrap
  • arch-chroot
  • pacman
  • Some minor symlink-ing to enable the appropriate services.

If symlinking by hand does not suit your needs, you can always use systemd-nspawn to actually spawn a copy of that chroot and use sysctl directly.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to create an OS image from the repository

Postby lharmon » Thu May 22, 2014 3:14 pm

OK, you create the OS images manually using pacstrap, arch-chroot, pacman , ln ...

What symbolic links need to be done manually for the SMILEplug? Or should I ask what sysctl commands need to be executed?
lharmon
 
Posts: 46
Joined: Fri Apr 19, 2013 7:30 pm

Re: How to create an OS image from the repository

Postby WarheadsSE » Thu May 22, 2014 3:18 pm

If you are going to use the systemctl route via systemd-nspawn, you will need to enable whatever services/interfaces, etc that you normally would.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to create an OS image from the repository

Postby lharmon » Thu May 22, 2014 5:25 pm

Normally, I would install smileplug.latest... which already has the links setup.

Most of the packages I install don't need anything done except calling pacman.
I am trying to understand which packages need the extra work done.
lharmon
 
Posts: 46
Joined: Fri Apr 19, 2013 7:30 pm

Re: How to create an OS image from the repository

Postby WarheadsSE » Thu May 22, 2014 6:02 pm

Only those for which require a configuration file (such as netctl profiles) or configuration file changes.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 7 guests

cron