You are not logged in.
I also ran into some problems while trying to provide the error messages and screenshots. The computer, where i tried this thing mentioned earlier it this topic, is an old laptop and there seems to be some kind of hardware problem which prevents me from entering the right passwords/passphrases. If i'm lucky its just the keyboard that is broken.
Maybe i can try to reproduce the situation in my desktop, with a virtual machine.
I thought that it would be easier to reproduce the situation(and take screenshots) in a virtual machine. Not necessarily. Either the installation disk(devuan chimaera live desktop) is scratched or there's a bug in VirtualBox. Managed to take some screenshots from the installation phase but how can i upload those? Or is there any website where i can upload pics without registering?
After installation phase things got complicated. Managed to change /boot partition from non-encrypted to encrypted(tar -c+umount /boot+cryptsetup luksFormat --type luks1+cryptsetup luksOpen+mke2fs+mount+tar -x+nano /etc/default/grub+update-grub+update-initramfs -u). And the virtual machine even booted after that.
Then i remembered, unfortunately, that i have to re-partition for that encrypted lvm partition. So install again from scratch into pre-existing vhd ... and then there were some previous entries in GRUB menu, none of the entries worked, new or old. So destroy the vm and create a new one -> after the installation was done i got into GRUB menu , but after booting the default entry there were complaints about mdadm. Didn't get a chance to give passphrase for / partition. Next try to install and the vm didn't manage to get into GRUB phase.
Enough fighting for one day.
It is propably pointless to use luks on an old laptop which does not even have a working keyboard anymore.
https://www.youtube.com/watch?v=c7kMYeiF5fs Drudkh - A Furrow Cut Short
not so much into Drudkh but this one i like.
If i have to guess, i should edit /etc/initramfs-tools/initramfs.conf or /etc/initramfs-tools/update-initramfs.conf or write a script under those subdirectories.
But what kind of options or scripts?
https://askubuntu.com/questions/551446/ … -initramfs
https://ogris.de/initramfs.lvm/
maybe something like these are what i'm looking for.
Of course i got some things mixed up last night.
The initrd that works, is aware of luks, not volume groups. It asks for passphrase, so after i give it, activating VG myvg should be possible.
So the problem is:how to modify initrd so that it activates myvg?
Ok, this question does not concern installation so much after message #2. Moderators can transfer it to another area.
I also ran into some problems while trying to provide the error messages and screenshots. The computer, where i tried this thing mentioned earlier it this topic, is an old laptop and there seems to be some kind of hardware problem which prevents me from entering the right passwords/passphrases. If i'm lucky its just the keyboard that is broken.
Maybe i can try to reproduce the situation in my desktop, with a virtual machine.
Re-install seems to be the easy way out of this situation.
But it could also be very useful to know how to alter initrd in a way that enables it to mount root partition that lives on a volume group.
Last night i was too tired to figure out the right search term for Google.
I tried some commands today:
1.sudo /sbin/ifdown eth0 + unplug the ethernet cable
2. /sbin/ifconfig says:
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets xxx bytes yyyyyy (yyy.y KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets xxx bytes zzzzzz (zzz.z KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
3. find dhcp server address from /var/lib/dhcp/dhclient.eth0.leases
3,5. plug ethernet cable back in
4. sudo /sbin/dhclient -s <server_addr> eth0
5. after some waiting, give command /sbin/ifconfig, result:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::<something> prefixlen 64 scopeid 0x20<link>
ether <something> txqueuelen 1000 (Ethernet)
RX packets xxxxx bytes xxxxxxxxx (xxx.x MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets yyyyy bytes yyyyyyyy (y.y MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
...
so the dhclient command by itself is not enough unless i want to change to ipv6. But not just yet. Let's make ipv4 work first.
And i guess that "ip" commands in /sbin/dhclient-script are there for a reason. So, what kind of "ip"-command should i use?
When i say in /etc/network/interfaces : iface eth0 inet dhcp , command "/sbin/ifup eth0" activates dhclient.
By default, dhclient broadcasts DHCPREQUEST-messages to all hosts.
But what if want to say which server dhclient sends it requests?
Of course i meant DHCPDISCOVER , not DHCPREQUEST.
Maybe i'll try that "server-name" thing but somehow i doubt that's the thing that i'm after.
And from these pages:
https://manpages.org/etc-network-interfaces/5
https://manpages.org/etc-network-interfaces/5
i noticed the "manual" keyworḍ. Combining that with "up" or "pre-up" seems interesting. I could give commands that way. Commands like "dhclient -s" for example. But do i have to do something to the network interface before invoking dhclient?
I noticed, from /sbin/dhclient-script that there is this command called "ip". It seems it can do many things.
Unfortunately i'm not familiar with "ip" command, so some help would be appreciated,
I'm not exactly sure there's a keyword in dhclient.conf for what i want. server-name "string"; seems closest thing. I guess i can try that (tomorrow).
Years ago, when i was still using Debian, it was possible to install in a way that the /-partition was a logical volume under a volume group.
Lately i switched to Devuan and refractainstaller does not offer that "root on LVM"-option.
So i used a normal partition for / and later moved /home to a volume group that i made after the install.
And then i tried a) to copy contents of /-partition to another logical volume and b) make the boot process use logical volume as root partition(several times).
Part a) was easy:vgchange -a y+lvcreate+mkfs.ext4+cp -a .
But part b) was not. I wonder if it is possible?
In the /boot/grub/grub.cfg there is line "vmlinuz root=/dev/myvg/newroot".
I know that i have to do something to initrd so that it sets up VG myvg before trying to mount the new root partition (/dev/myvg/newroot).
I think initrd is aware of lvm and it sets up myvg for swap and home. But how do i say that "activate myvg earlier, before mounting /" ?
Commands "update-initramfs -u" and "update-grub" haven't done what i wished. The new root mounted or not. Chrooting to new root part and giving the command from there has been done also. Still the new initrd cannot find /dev/myvg/newroot.
If i have to guess, i should edit /etc/initramfs-tools/initramfs.conf or /etc/initramfs-tools/update-initramfs.conf or write a script under those subdirectories.
But what kind of options or scripts?
Or is it easier to just re-install and try some kind of trick before refractainstaller installs GRUB?
Right now i'm not using that computer but i can provide the error messages and stuff later,
When i say in /etc/network/interfaces : iface eth0 inet dhcp , command "/sbin/ifup eth0" activates dhclient.
By default, dhclient broadcasts DHCPDISCOVER-messages to all hosts(255.255.255.255).
But what if want to say which server dhclient sends it requests?
It is possible to say "reject a.b.c.d/mask" in /etc/dhcp/dhclient.conf but that's not what i mean.
Then i tried /sbin/dhclient --help:
Usage: dhclient [-4|-6] [-SNTPRI1dvrxi] [-nw] [-p <port>] [-D LL|LLT]
[--dad-wait-time <seconds>] [--prefix-len-hint <length>]
[--decline-wait-time <seconds>]
[--address-prefix-len <length>]
[-s server-addr] [-cf config-file]
[-df duid-file] [-lf lease-file]
[-pf pid-file] [--no-pid] [-e VAR=val]
[-sf script-file] [interface]*
dhclient {--version|--help|-h}
it seems that "-s" - option is what i want.
But how i should edit /etc/network/interfaces so that "-s server_ip"-option goes to dhclient when i bring eth0 up with /sbin/ifup?
I guess "pre-up <command>" or "up <command>" are the things that i should add to /e/n/interfaces. But exactly what commands?
Should i bring eth0 up with temporary address by using "ip" command? And after that "dhclient -s <server_ip>" ? Or is dhclient enough?
I'm not a completely newbie with computers or linux but haven't tried this kind of thing before.