You are not logged in.

#1 2022-09-21 13:03:36

vieri
Member
Registered: 2018-12-03
Posts: 14

archinstall on encrypted root

Hi,

This is the first time I install Archlinux with archinstall.
I set an encryption key for root and selected a "minimal" profile.
The whole installation went fine, and I ended up in the chrooted shell where I supposed I could install and configure extra stuff.

Here's what I did:

mkdir /root/original
cp /etc/systemd/network/20-ethernet.network /root/original/
echo "[Match]" > /etc/systemd/network/20-ethernet.network
echo "Name=${ethdevice}" >> /etc/systemd/network/20-ethernet.network
echo "" >> /etc/systemd/network/20-ethernet.network
echo "[Network]" >> /etc/systemd/network/20-ethernet.network
echo "Address=${ethIPaddr}" >> /etc/systemd/network/20-ethernet.network
echo "Gateway=${gwIPaddr}" >> /etc/systemd/network/20-ethernet.network
echo "DNS=${gwIPaddr}" >> /etc/systemd/network/20-ethernet.network

systemctl enable systemd-networkd.service
systemctl is-enabled systemd-networkd.service

pacman -S apache

# I modified some Apache config files.

reboot

Upon reboot I entered the encryption key for root, and the system booted as expected.

However, when I logged in as root I didn't see the files I created/modified in /root, /etc/systemd/network/, /etc/httpd/.

I'm obviously making a novice mistake here.

Any suggestions?

Last edited by vieri (2022-09-21 15:55:32)

Offline

#2 2022-09-21 13:42:46

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,426
Website

Re: archinstall on encrypted root

Mod note: moved to guided installer subforum


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2022-09-21 15:48:56

vieri
Member
Registered: 2018-12-03
Posts: 14

Re: archinstall on encrypted root

Hmm, I received 3 e-mail notifications from the forum, one of which says that 2ManyDogs has replied to the topic. The URL is https://bbs.archlinux.org/viewtopic.php … 5#p2058365, but it leads to an error. I don't know if the reply got lost while this topic was being moved by WorMzy.

Offline

#4 2022-09-21 15:51:22

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: archinstall on encrypted root

It wasn't anything useful to you -- I deleted a post noting this thread was moved because while I was posting another moderator moved the topic.

Offline

#5 2022-09-21 15:53:53

vieri
Member
Registered: 2018-12-03
Posts: 14

Re: archinstall on encrypted root

2ManyDogs wrote:

It wasn't anything useful -- I deleted a post noting this thread was moved because while I was posting another moderator moved the topic.

OK, thanks anyway.

Offline

#6 2022-09-21 16:14:07

frostschutz
Member
Registered: 2013-11-15
Posts: 1,472

Re: archinstall on encrypted root

Maybe it wasn't chrooted after all. Then all those files would be on the ramdisk of the live environment, and gone with the reboot.

One simple way to check is with df, example when it's _not_ chrooted:

# df /
Filesystem     1K-blocks  Used Available Use% Mounted on
airootfs          262144   852    261292   1% /
# df /mnt
Filesystem     1K-blocks   Used Available Use% Mounted on
/dev/vda1       33548288 311616  33236672   1% /mnt

in this case /mnt is /dev/vda1 storage, but / is the tmpfs / airootfs live environment / ram disk ...

in your case you could run `df /root/original /etc/systemd` and see if those paths belong to mounted persistent storage or not

Last edited by frostschutz (2022-09-21 16:15:45)

Offline

#7 2022-09-21 21:44:57

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,426
Website

Re: archinstall on encrypted root

vieri wrote:

Hmm, I received 3 e-mail notifications from the forum, one of which says that 2ManyDogs has replied to the topic. The URL is https://bbs.archlinux.org/viewtopic.php … 5#p2058365, but it leads to an error. I don't know if the reply got lost while this topic was being moved by WorMzy.

Yes, apologies for that. Myself and 2MD managed to trip over each other while moving the topic. We both replied with one second of each other and subsequently deleted our replies in favour of the others reply. I replied a second time once I realised that we'd both deleted our messages. smile


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#8 2022-09-22 08:37:53

vieri
Member
Registered: 2018-12-03
Posts: 14

Re: archinstall on encrypted root

Right after I choose to "enter chroot in order to run postinstallation tasks" I see a green message saying:

Installation completed without any errors. You may now reboot.

I then immediately run the following:

root@archiso ~ # df /
Filesystem     1K-blocks  Used Available Use% Mounted on
airootfs          262144 14864    247280   6% /
root@archiso ~ # df /mnt/
Filesystem     1K-blocks  Used Available Use% Mounted on
airootfs          262144 14864    247280   6% /
root@archiso ~ # df /mnt/archinstall
Filesystem            1K-blocks    Used Available Use% Mounted on
/dev/mapper/ainstsda2 479065808 1907612 452749572   1% /mnt/archinstall
root@archiso ~ # df /mnt/archinstall/boot
Filesystem     1K-blocks  Used Available Use% Mounted on
/dev/sda1         522204 65940    456264  13% /mnt/archinstall/boot

I then decided to run this:

root@archiso ~ # arch-chroot /mnt/archinstall/
[root@archiso /]# ls
bin   dev  home  lib64       mnt  proc  run   srv  tmp  var
boot  etc  lib   lost+found  opt  root  sbin  sys  usr
[root@archiso /]# df /
Filesystem            1K-blocks    Used Available Use% Mounted on
/dev/mapper/ainstsda2 479065808 1907612 452749572   1% /

Now I'm really in chroot, and I can eventually perform the rest of my postnstallation tasks.

So I guess archinstall is failing to chroot and exits without reporting an error.

Now I'm resorting to just running something like this:

root@archiso ~ # arch-chroot /mnt/archinstall my_post_install_script.sh
root@archiso ~ # reboot

after completing archinstall.

I hope the archinstall dev/s snoop around in this subforum...

Thanks

Last edited by vieri (2022-09-22 08:39:45)

Offline

Board footer

Powered by FluxBB