Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #208693 > unrolled thread
| Started by | Rory Campbell-Lange <rory@campbell-lange.net> |
|---|---|
| First post | 2019-05-16 15:10 +0200 |
| Last post | 2019-05-17 19:10 +0200 |
| Articles | 7 — 3 participants |
Back to article view | Back to linux.debian.user
Install backport during netinstall installation process Rory Campbell-Lange <rory@campbell-lange.net> - 2019-05-16 15:10 +0200
Re: Install backport during netinstall installation process Curt <curty@free.fr> - 2019-05-16 19:00 +0200
Re: Install backport during netinstall installation process Rory Campbell-Lange <rory@campbell-lange.net> - 2019-05-17 09:10 +0200
Re: Install backport during netinstall installation process Curt <curty@free.fr> - 2019-05-17 11:00 +0200
Re: Install backport during netinstall installation process Rory Campbell-Lange <rory@campbell-lange.net> - 2019-05-17 17:10 +0200
Re: Install backport during netinstall installation process Curt <curty@free.fr> - 2019-05-17 18:00 +0200
Re: Install backport during netinstall installation process Brian <ad44@cityscape.co.uk> - 2019-05-17 19:10 +0200
| From | Rory Campbell-Lange <rory@campbell-lange.net> |
|---|---|
| Date | 2019-05-16 15:10 +0200 |
| Subject | Install backport during netinstall installation process |
| Message-ID | <xYoiZ-2Jh-1@gated-at.bofh.it> |
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.
[toc] | [next] | [standalone]
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2019-05-16 19:00 +0200 |
| Message-ID | <xYrTz-4J2-1@gated-at.bofh.it> |
| In reply to | #208693 |
On 2019-05-16, Rory Campbell-Lange <rory@campbell-lange.net> 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
[toc] | [prev] | [next] | [standalone]
| From | Rory Campbell-Lange <rory@campbell-lange.net> |
|---|---|
| Date | 2019-05-17 09:10 +0200 |
| Message-ID | <xYFaa-4Pa-11@gated-at.bofh.it> |
| In reply to | #208697 |
On 16/05/19, Curt (curty@free.fr) wrote: > On 2019-05-16, Rory Campbell-Lange <rory@campbell-lange.net> 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
[toc] | [prev] | [next] | [standalone]
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2019-05-17 11:00 +0200 |
| Message-ID | <xYGSB-5Gm-1@gated-at.bofh.it> |
| In reply to | #208709 |
On 2019-05-17, Rory Campbell-Lange <rory@campbell-lange.net> wrote: > On 16/05/19, Curt (curty@free.fr) wrote: >> On 2019-05-16, Rory Campbell-Lange <rory@campbell-lange.net> 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
[toc] | [prev] | [next] | [standalone]
| From | Rory Campbell-Lange <rory@campbell-lange.net> |
|---|---|
| Date | 2019-05-17 17:10 +0200 |
| Message-ID | <xYMEF-10S-3@gated-at.bofh.it> |
| In reply to | #208716 |
On 17/05/19, Curt (curty@free.fr) wrote: > On 2019-05-17, Rory Campbell-Lange <rory@campbell-lange.net> wrote: > > On 16/05/19, Curt (curty@free.fr) wrote: > >> On 2019-05-16, Rory Campbell-Lange <rory@campbell-lange.net> 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
[toc] | [prev] | [next] | [standalone]
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2019-05-17 18:00 +0200 |
| Message-ID | <xYNr3-1i3-3@gated-at.bofh.it> |
| In reply to | #208738 |
On 2019-05-17, Rory Campbell-Lange <rory@campbell-lange.net> 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
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2019-05-17 19:10 +0200 |
| Message-ID | <xYOwN-2az-1@gated-at.bofh.it> |
| In reply to | #208693 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web