Where I can found script/tool used to generated root tarbals

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

Where I can found script/tool used to generated root tarbals

Postby ecanuto » Thu Dec 29, 2016 1:30 am

I would like to inspect and generate my own custom archlinux arm rootfs. Where I can found scripts used to generate current rootfs tarbals ?
ecanuto
 
Posts: 4
Joined: Thu Dec 29, 2016 1:20 am

Re: Where I can found script/tool used to generated root tar

Postby stormaes » Wed Jan 04, 2017 11:29 am

You can tar up the rootfs I think.

Process is like this (cant remember the exact details):

Install to medium and boot

update
Code: Select all
pacman -Syu


<do your customisation, install packages etc>

clear cache
Code: Select all
paccache -rk0


shutdown and insert medium in another machine

mount dirs
Code: Select all
mkdir /mnt/boot && mount /dev/sdx1 /mnt/boot

mkdir /mnt/root && mount /dev/sdx2 /mnt/root


remove machine-id (forces regeneration on next boot, and prevents some weirdness when networking two systems I think)
Code: Select all
rm /mnt/root/etc/machine-id


compress filesystem.
Code: Select all
tar -cfzv AlarmCustom.tar.gz /mnt


I have done this a few times, (or something very very similar, this is from memory), and been able to successfully install to rpis.

Let me know if you have success. I'll try to remember to go through the process tomorrow morning, and see if there anything I forgot.
stormaes
 
Posts: 2
Joined: Wed Jan 04, 2017 11:10 am

Re: Where I can found script/tool used to generated root tar

Postby ecanuto » Thu Jan 05, 2017 12:00 am

Nice. But I would like to have access to oficial scripts used to generate current tarballs. I can customize current one but I am not sure about how the original rootfs tarball has been generated.
ecanuto
 
Posts: 4
Joined: Thu Dec 29, 2016 1:20 am

Re: Where I can found script/tool used to generated root tar

Postby stormaes » Thu Jan 05, 2017 11:51 pm

I would also like that, in the meantime the method I outlined works in practice.

One thing that's also possible using that method is cloning the currently running os (you need to exclude proc sys var and whatnot) to another medium.

I think it would be great to ship the default tarball with the script to generate a fs from the current one.
stormaes
 
Posts: 2
Joined: Wed Jan 04, 2017 11:10 am


Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 3 guests