Release Engineering

Tasklist

FS#16232 - [archiso] Adding support for installation over serial links

Attached to Project: Release Engineering
Opened by Ciprian Dorin Craciun (ciprian.craciun) - Thursday, 17 September 2009, 09:47 GMT
Last edited by Dieter Plaetinck (Dieter_be) - Thursday, 18 August 2011, 11:44 GMT
Task Type Feature Request
Category ArchISO
Status Closed
Assigned To Aaron Griffin (phrakture)
Gerhard Brauer (GerBra)
Architecture All
Severity Low
Priority Low
Reported Version 2009.08
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Please add support for installation of ArchLinux over serial links. (In order to do this just a line must be added to both /etc/inittab and /etc/securetty in the installation file-system.)

This feature is usefull in the situation of installing ArchLinux on a computer without a monitor. This could happen on a Xen domU instance, blade-servers, computers without monitors, etc.
This task depends upon

Closed by  Dieter Plaetinck (Dieter_be)
Thursday, 18 August 2011, 11:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  Dave Reisner confirmed this is fixed, he uses kvm
Comment by Gerardo Exequiel Pozzi (djgera) - Sunday, 29 November 2009, 23:48 GMT
Yes, this is very usefull. Personally I was done for my custom archiso. Not only touching /etc/inittab and /etc/securetty also for menu.lst for grub and syslinux.

* for grub adding these lines and duplicating entries for kernel adding console="ttyS0":
serial --unit=0 --speed=9600
terminal --timeout=3 console serial

in this way grub prompts 3 times (to continue) in both serial port and console, if not entry then show menu in normal console.
For syslinux only adding "serial 0 9600" as the first line in isolinux.cfg (and both duplicated entries for kernel with console="ttyS0".

The issue here is making this more generic :) other serial port than COM1 for real hardware. For virtual enviroments there are no issue (as far I know).
Comment by Dieter Plaetinck (Dieter_be) - Monday, 05 April 2010, 15:22 GMT
gerardo what exactly do you mean with "Not only touching /etc/inittab and /etc/securetty " ?
you have to modify inittab, securetty *and* grub/syslinux ?

what are all needed changes to all files in order to make this is as good as possible without bothering "normal" users? and would that be good enough?
Comment by Gerardo Exequiel Pozzi (djgera) - Monday, 05 April 2010, 22:52 GMT
changes in /etc/securetty + /etc/inittab + isolinux.cfg + a script that is launched from init. This script must detect if console=ttyS0 then launch agetty, otherwise should keep in a infinite loop that does nothing.

Also can cover ttyUSB* devices.
Comment by Simo Leone (neotuli) - Thursday, 03 March 2011, 12:21 GMT
Patch sent http://mailman.archlinux.org/pipermail/arch-releng/2011-March/001536.html
This is half of it anyway. Makes agetty start on the first kernel console.

Second part is a bit more difficult since it's bootloader configuration. There's a couple common cases:
* If you're doing PXE booting or something you're probably going to just edit the bootloader config yourself anyway.
* If you're booting off a usb stick or cdrom and all you have available is a serial port, the best we could do is add a "serial 0 38400" line in the bootloader config, which would let you operate the bootloader (and thus console= and so on) from ttyS0. Probably covers most of these cases where virtualization or physical access are involved.
Comment by Dieter Plaetinck (Dieter_be) - Saturday, 05 March 2011, 18:35 GMT
Simo, if we add the "serial 0 38400" line to the bootloader, could that hurt other users who do not want this?
Otherwise, let's just do it, if it makes everyone happy.
Comment by Simo Leone (neotuli) - Saturday, 05 March 2011, 18:51 GMT
http://mailman.archlinux.org/pipermail/arch-releng/2011-March/001541.html

I think it should be ok. I tried it in a VM without any serial hardware exposed and it didn't complain. You might want to try it too just to make sure.
Comment by John Patton (the_general) - Friday, 25 March 2011, 18:05 GMT
Using the March 23 ISO, this didn't work for me. The last thing i see is:

:: Starting agetty on console: ttyS0 [BUSY] [DONE]
INIT: Id "z0" respawning too fast: disabled for 5 minutes

Without having time just yet to test it, i wonder if changing the line in configs/syslinux-iso/overlay/etc/rc.d/archiso:

echo "s0:2345:respawn:/sbin/agetty ${rts} ${baud} ${dev} linux" >> /etc/inittab

to:

echo "s0:2345:respawn:/sbin/agetty ${rts} ${baud} ${dev} vt100-nav" >> /etc/inittab

will fix this?
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 16 August 2011, 00:04 GMT
  • Field changed: Percent Complete (0% → 90%)
Fixed current implementation.

Should be available in 2011.08.16 testisos.

http://projects.archlinux.org/archiso.git/commit/?id=708ba38c206a2147fbd7a357d6ece8881807231d

Loading...