Re: Install backport during netinstall installation process
On Jo, 16 mai 19, 14:01:43, Rory Campbell-Lange wrote: > I've been struggling to fully setup some machines with A2SDi-8C-HLN4F > motherboards and Intel x553 NICs (which require recent ixgbe support) as > Debian stable machines. > > Thanks to considerable help from this list, I've been able to > successfully setup the machines over the net using buster/testing > netinstall images, which allow one to select stretch/stable at install > time, then reboot into rescue mode on the netinstaller and install > kernel-image-4.19.0-0.bpo from backports to provide a stable system and > kernel with ixgbe support. > > However this doesn't work when running root off a RAID1 array with > dm_crypt on top. Rescue mode can't both reassemble the array and decrypt > the volume. While I can do that from the rescue shell I don't know how > to pivot to make the decrypted volume root so I can install the backport > kernel. ** I seem to recall the installer in expert mode offering a choice of kernels to install. Try pressing 'Back' and check the menu. Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser signature.asc Description: PGP signature
Re: Install backport during netinstall installation process
On Thu 16 May 2019 at 14:01:43 +0100, Rory Campbell-Lange wrote: [...] > Consequently I'd be grateful to know if: > > * it is possible to somehow install the backport kernel and dependencies > during the netinstall process > (apt-get install doesn't seem available on the virtual terminals) You could consider preseeding the installation with a late_command to add backports to sources.list and update and install with apt-get. This wouldn't suit you, but it can be adapted: d-i preseed/late_command string \ mkdir /target/media/ARCHIVE-9; \ mount --bind /hd-media /target/media/ARCHIVE-9; \ sed -i 's/^/#/' /target/etc/apt/sources.list; \ echo "deb [ trusted=yes ] file:/media/ARCHIVE-9/debian jessie main contrib" >> /target/etc/apt/sources.list; \ in-target apt-get update; \ in-target apt-get -y install mc gpm vim bash-completion less; -- Brian.
Re: Install backport during netinstall installation process
On 2019-05-17, Rory Campbell-Lange wrote: >> >> I'm sure someone here can offer you the exact details of how to do that. > > Thanks again for the advice. > > I'm pretty sure dpkg isn't available in /target but I didn't try a > chroot so maybe I'll give that another go! Well, it's what seems to happening here, for example: https://wiki.debian.org/DebianInstaller/MultipathSupport switch to the second VT using CTRL-ALT-F2. copy the patched grub to /target/tmp chroot /target dpkg -i /tmp/grub_*.deb switch back to the first VT using CTRL-ALT-F1 and continue with the installation. > Many thanks > Rory > > -- “When he was dry, he believed it was alcohol he needed, but when he had a few drinks in him, he knew it was something else, possibly a woman; and when he had it all — cash, booze, and a wife — he couldn’t be distracted from the great emptiness that was always falling through him and never hit the ground.” – Denis Johnson
Re: Install backport during netinstall installation process
On 17/05/19, Curt (cu...@free.fr) wrote: > On 2019-05-17, Rory Campbell-Lange wrote: > > On 16/05/19, Curt (cu...@free.fr) wrote: > >> On 2019-05-16, Rory Campbell-Lange wrote: > >> > > >> > * it is possible to somehow install the backport kernel and dependencies > >> > during the netinstall process > >> > (apt-get install doesn't seem available on the virtual terminals) > >> > >> I guess preseeding is one way of doing it (gleaned from a rapid internet > >> search): > >> > >> https://blog.raymond.burkholder.net/index.php?/archives/899-Debian-Preseed-Backport-Kernel.html > > > > That is very helpful, Curt. Thanks a lot. > > All the experts are on vacation, apparently, but I think a > less-involved, feasible method would be to use the netinstall iso > normally but after grub installation (and *before reboot*), from a > virtual terminal, 'chroot' into /target and install the backported > kernel deb manually with 'dpkg -i' (you could mount a thumb drive > containing the downloaded kernel or wget the kernel from the appropriate > repository). > > I'm sure someone here can offer you the exact details of how to do that. Thanks again for the advice. I'm pretty sure dpkg isn't available in /target but I didn't try a chroot so maybe I'll give that another go! Many thanks Rory
Re: Install backport during netinstall installation process
On 2019-05-17, Rory Campbell-Lange wrote: > On 16/05/19, Curt (cu...@free.fr) wrote: >> On 2019-05-16, Rory Campbell-Lange wrote: >> > >> > Consequently I'd be grateful to know if: >> > >> > * it is possible to somehow install the backport kernel and dependencies >> > during the netinstall process >> > (apt-get install doesn't seem available on the virtual terminals) >> >> I guess preseeding is one way of doing it (gleaned from a rapid internet >> search): >> >> https://blog.raymond.burkholder.net/index.php?/archives/899-Debian-Preseed-Backport-Kernel.html > > That is very helpful, Curt. Thanks a lot. All the experts are on vacation, apparently, but I think a less-involved, feasible method would be to use the netinstall iso normally but after grub installation (and *before reboot*), from a virtual terminal, 'chroot' into /target and install the backported kernel deb manually with 'dpkg -i' (you could mount a thumb drive containing the downloaded kernel or wget the kernel from the appropriate repository). I'm sure someone here can offer you the exact details of how to do that. Good luck. > Apart from the link you've kindly pointed me to, there is also an > ancient but still pertinent-seeming post here about using preseed files > with netboot: > https://www.credativ.com/credativ-blog/2010/07/howto-debian-preseed-with-netboot > > Also the manual at > https://www.debian.org/releases/stretch/amd64/apbs02.html.en > suggests one can provide a preseed.cfg file via tftp, e.g. > > preseed/url=tftp://host/path/to/preseed.cfg > preseed/url/checksum=5da499872becccfeda2c4872f9171c3d > > I'll give that a go. > > Thanks a lot! > Rory > > -- “When he was dry, he believed it was alcohol he needed, but when he had a few drinks in him, he knew it was something else, possibly a woman; and when he had it all — cash, booze, and a wife — he couldn’t be distracted from the great emptiness that was always falling through him and never hit the ground.” – Denis Johnson
Re: Install backport during netinstall installation process
On 16/05/19, Curt (cu...@free.fr) wrote: > On 2019-05-16, Rory Campbell-Lange wrote: > > > > Consequently I'd be grateful to know if: > > > > * it is possible to somehow install the backport kernel and dependencies > > during the netinstall process > > (apt-get install doesn't seem available on the virtual terminals) > > I guess preseeding is one way of doing it (gleaned from a rapid internet > search): > > https://blog.raymond.burkholder.net/index.php?/archives/899-Debian-Preseed-Backport-Kernel.html That is very helpful, Curt. Thanks a lot. Apart from the link you've kindly pointed me to, there is also an ancient but still pertinent-seeming post here about using preseed files with netboot: https://www.credativ.com/credativ-blog/2010/07/howto-debian-preseed-with-netboot Also the manual at https://www.debian.org/releases/stretch/amd64/apbs02.html.en suggests one can provide a preseed.cfg file via tftp, e.g. preseed/url=tftp://host/path/to/preseed.cfg preseed/url/checksum=5da499872becccfeda2c4872f9171c3d I'll give that a go. Thanks a lot! Rory
Re: Install backport during netinstall installation process
On 2019-05-16, Rory Campbell-Lange wrote: > > Consequently I'd be grateful to know if: > > * it is possible to somehow install the backport kernel and dependencies > during the netinstall process > (apt-get install doesn't seem available on the virtual terminals) I guess preseeding is one way of doing it (gleaned from a rapid internet search): https://blog.raymond.burkholder.net/index.php?/archives/899-Debian-Preseed-Backport-Kernel.html > * alternatively, what mount point and commands should I use to make a > root file system (which I've re-raided and decrypted) available to the > buster installer in rescue mode > Thanks very much > Rory > > > ** there is another issue, which is the stretch grub doesn't seem to be > able to decrypt a dm_crypt volume when made from buster. I've reported > that to debian-boot. > > > -- “When he was dry, he believed it was alcohol he needed, but when he had a few drinks in him, he knew it was something else, possibly a woman; and when he had it all — cash, booze, and a wife — he couldn’t be distracted from the great emptiness that was always falling through him and never hit the ground.” – Denis Johnson
Install backport during netinstall installation process
I've been struggling to fully setup some machines with A2SDi-8C-HLN4F motherboards and Intel x553 NICs (which require recent ixgbe support) as Debian stable machines. Thanks to considerable help from this list, I've been able to successfully setup the machines over the net using buster/testing netinstall images, which allow one to select stretch/stable at install time, then reboot into rescue mode on the netinstaller and install kernel-image-4.19.0-0.bpo from backports to provide a stable system and kernel with ixgbe support. However this doesn't work when running root off a RAID1 array with dm_crypt on top. Rescue mode can't both reassemble the array and decrypt the volume. While I can do that from the rescue shell I don't know how to pivot to make the decrypted volume root so I can install the backport kernel. ** Consequently I'd be grateful to know if: * it is possible to somehow install the backport kernel and dependencies during the netinstall process (apt-get install doesn't seem available on the virtual terminals) * alternatively, what mount point and commands should I use to make a root file system (which I've re-raided and decrypted) available to the buster installer in rescue mode Thanks very much Rory ** there is another issue, which is the stretch grub doesn't seem to be able to decrypt a dm_crypt volume when made from buster. I've reported that to debian-boot.