• bootloader/zipl in Debian

    From Tuan M. Hoang@21:1/5 to All on Tue Aug 8 16:40:03 2017
    Hello,

    I have a few questions regarding s390x bootloader on Debian, hope some
    gurus in the list could help me out.

    Says I have Debian installed in my disk. To make it bootable, I should
    install the bootloader on the disk to make it bootable.
    'bootable-system' virtual package on s390x should be 'zipl-installer'.
    Looking up in zipl-installer source tree at https://anonscm.debian.org/cgit/d-i/zipl-installer.git/tree/, I couldn't
    find any possible code installing the bootloader on disk. I couldn't
    find it in debian-installer neither. Am I missing something ?

    I guess that code should contains zipl command and some other setups.
    For example, I tried :

    # zipl -V -t /boot -i /boot/vmlinuz -r /boot/initrd.img

    # chreipl ccw 0.0.0001 -L 1
    ( device id collected from /dev/disk/by-path/ccw-0.0.0001 )

    The commands run fine, and new 'bootmap' was installed in /boot but
    reboot failed.

    Here is the log at rebooting (running in KVM): https://paste.debian.net/980399/. There definitely must be some other setups/commands I am missing but I have no clue atm.

    Thanks for reading,
    Tuan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dimitri John Ledkov@21:1/5 to Tuan M. Hoang on Tue Aug 8 21:20:01 2017
    On 8 August 2017 at 09:37, Tuan M. Hoang <tmhoang@flatglobe.org> wrote:
    Hello,

    I have a few questions regarding s390x bootloader on Debian, hope some
    gurus in the list could help me out.

    Says I have Debian installed in my disk. To make it bootable, I should install the bootloader on the disk to make it bootable.
    'bootable-system' virtual package on s390x should be 'zipl-installer'. Looking up in zipl-installer source tree at https://anonscm.debian.org/cgit/d-i/zipl-installer.git/tree/, I couldn't
    find any possible code installing the bootloader on disk. I couldn't
    find it in debian-installer neither. Am I missing something ?


    When the installer gets to configuring zipl-installer, it executes the postinst:
    https://anonscm.debian.org/cgit/d-i/zipl-installer.git/tree/debian/zipl-installer.postinst

    this is where zipl is configured and executed in-target.



    I guess that code should contains zipl command and some other setups.
    For example, I tried :

    # zipl -V -t /boot -i /boot/vmlinuz -r /boot/initrd.img

    # chreipl ccw 0.0.0001 -L 1
    ( device id collected from /dev/disk/by-path/ccw-0.0.0001 )

    The commands run fine, and new 'bootmap' was installed in /boot but
    reboot failed.

    Here is the log at rebooting (running in KVM): https://paste.debian.net/980399/. There definitely must be some other setups/commands I am missing but I have no clue atm.

    Thanks for reading,
    Tuan


    --
    Regards,

    Dimitri.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tuan M. Hoang@21:1/5 to Dimitri John Ledkov on Wed Aug 9 01:10:01 2017
    On 08/08/2017 02:11 PM, Dimitri John Ledkov wrote:


    When the installer gets to configuring zipl-installer, it executes the postinst:
    https://anonscm.debian.org/cgit/d-i/zipl-installer.git/tree/debian/zipl-installer.postinst

    this is where zipl is configured and executed in-target.




    Hi Dimitri,

    Indeed I've read that part and I thought 'the code' should be somewhere
    else. So there it is.

    Forgive me being new to Debian build system, where could I find the code
    for 'in-target', 'log-output' commands ?

    Thanks,
    Tuan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)