Results 1 to 9 of 9

Thread: How to build rescue system like the one on installation DVD ?

  1. #1

    Default How to build rescue system like the one on installation DVD ?

    I'm trying to find out how I can build a rescue system like the one on the official openSUSE installation DVD. I'm asking because I would like to extend the current one in a few ways for my own use (integrating my own scripts etc.). I know that it's basically a squashfs file system (actually two) that's started from initrd of the installation DVD. I'm aware of the article https://en.opensuse.org/SDB:Rescue_system_on_disk but simply extending the current rescue system as described there will not really work for me. I would really like to build my own.

    I know about the build service and kiwi and Studio Express and I would assume that the rescue system on the installation DVD is built with kiwi or something similar but after searching for a while I couldn't find anything helpful. Could someone point me in the right direction how to go about this? A certain template for the build service or a kiwi file for the rescue system for example? I do not about the "JeOS" templates but they create bigger systems and I assume that the rescue system is different from those in some ways.

    By the way: I'm not looking for a system that will run in a virtualized environment. I'm really looking for something running on "bare metal", so, for example, it needs to load all the necessary drivers to support the usual mass storage devices when booting just like the normal rescue system.

    Thanks in advance!
    Hendrik

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,308
    Blog Entries
    15

    Default Re: How to build rescue system like the one on installation DVD ?

    Quote Originally Posted by hendrikfe View Post
    I'm trying to find out how I can build a rescue system like the one on the official openSUSE installation DVD. I'm asking because I would like to extend the current one in a few ways for my own use (integrating my own scripts etc.). I know that it's basically a squashfs file system (actually two) that's started from initrd of the installation DVD. I'm aware of the article https://en.opensuse.org/SDB:Rescue_system_on_disk but simply extending the current rescue system as described there will not really work for me. I would really like to build my own.

    I know about the build service and kiwi and Studio Express and I would assume that the rescue system on the installation DVD is built with kiwi or something similar but after searching for a while I couldn't find anything helpful. Could someone point me in the right direction how to go about this? A certain template for the build service or a kiwi file for the rescue system for example? I do not about the "JeOS" templates but they create bigger systems and I assume that the rescue system is different from those in some ways.

    By the way: I'm not looking for a system that will run in a virtualized environment. I'm really looking for something running on "bare metal", so, for example, it needs to load all the necessary drivers to support the usual mass storage devices when booting just like the normal rescue system.

    Thanks in advance!
    Hendrik
    Hi
    I use kiwi here and start from a JeOS configuration from here;
    https://github.com/SUSE/kiwi-descriptions

    This thread may be of interest;
    http://forums.opensuse.org/showthread.php?t=535802
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,822
    Blog Entries
    1

    Default Re: How to build rescue system like the one on installation DVD ?

    If a LiveCD or rescue CD you like is pretty close to what you want, I don't know if I'd go through all the work of creating a new image with Kiwi...
    I'd use Kiwi if I wanted to install or remove packages and apply any special configurations...

    But, If all I wanted to do was add a few scripts to a CD image that already has 99% of everything I'd want,
    I'd just rip the existing image, add my scripts and then burn the new image.

    There are even standard DVD/CD burn apps that can do everything for you.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  4. #4

    Default Re: How to build rescue system like the one on installation DVD ?

    Thanks a lot for your replies!

    So it seems that I have the choice between either modifying the existing rescue system image (which I would like to avoid since I don't just want to add some scripts but also some packages and then I'd have to figure out manually how to fulfill all dependencies) or starting with a "JeOS" kiwi system and trying to strip it down and make it behave much like the rescue system. I was hoping that there were build instructions for the rescue system and the rescue system could thus be modified and rebuilt by everybody just like all the software packages (RPMs) and system images built by kiwi.

    Best regards,
    Hendrik

  5. #5
    Join Date
    Sep 2012
    Posts
    4,943

    Default Re: How to build rescue system like the one on installation DVD ?

    Quote Originally Posted by hendrikfe View Post
    or starting with a "JeOS" kiwi system and trying to strip it down and make it behave much like the rescue system
    You can start with any existing DVD image: https://build.opensuse.org/project/s...ap:15.1:Images

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,308
    Blog Entries
    15

    Default Re: How to build rescue system like the one on installation DVD ?

    Quote Originally Posted by hendrikfe View Post
    Thanks a lot for your replies!

    So it seems that I have the choice between either modifying the existing rescue system image (which I would like to avoid since I don't just want to add some scripts but also some packages and then I'd have to figure out manually how to fulfill all dependencies) or starting with a "JeOS" kiwi system and trying to strip it down and make it behave much like the rescue system. I was hoping that there were build instructions for the rescue system and the rescue system could thus be modified and rebuilt by everybody just like all the software packages (RPMs) and system images built by kiwi.

    Best regards,
    Hendrik
    Hi
    Do you want a desktop environment or command line (I prefer runlevel 3 and use twin)?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7

    Default Re: How to build rescue system like the one on installation DVD ?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Do you want a desktop environment or command line (I prefer runlevel 3 and use twin)?
    Command line would be fine (or rather a simple ncurses-based text-mode UI like the "dialog" utility). I'm trying to create a system that will run on practically any hardware and would like it to be as small as possible at the same time - just like the rescue system. But in the end it will have a very simple text-mode UI so that any user can use it to create and restore backups of "complete" Linux systems (and some more functionality).

    What do you mean by "twin" in this context?

    I was grateful for the hint to https://build.opensuse.org/project/s...ap:15.1:Images because I was hoping it would contain the instructions to build the "normal" installation DVD which means it would also contain the instructions to build the rescue system somehow but it seems that the "opensuse-leap-image" package in this project only builds images for for Docker and LXC.

    Thanks,
    Hendrik

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,308
    Blog Entries
    15

    Default Re: How to build rescue system like the one on installation DVD ?

    Quote Originally Posted by hendrikfe View Post
    Command line would be fine (or rather a simple ncurses-based text-mode UI like the "dialog" utility). I'm trying to create a system that will run on practically any hardware and would like it to be as small as possible at the same time - just like the rescue system. But in the end it will have a very simple text-mode UI so that any user can use it to create and restore backups of "complete" Linux systems (and some more functionality).

    What do you mean by "twin" in this context?

    I was grateful for the hint to https://build.opensuse.org/project/s...ap:15.1:Images because I was hoping it would contain the instructions to build the "normal" installation DVD which means it would also contain the instructions to build the rescue system somehow but it seems that the "opensuse-leap-image" package in this project only builds images for for Docker and LXC.

    Thanks,
    Hendrik
    Hi
    I use twin/gpm (for the mouse);
    http://sourceforge.net/projects/twin/
    https://build.opensuse.org/package/s...E_General/twin

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    
    <image schemaversion="6.8" name="JeOS-Tumbleweed">
        <description type="system">
            <author>Me</author>
            <contact>email</contact>
            <specification>
                JeOS image for testing cage/luakit/twin
            </specification>
        </description>
        <preferences>
            <type image="iso" primary="true" flags="overlay" hybrid="true" hybridpersistent_filesystem="ext4" hybridpersistent="true"/>
            <version>20190617</version>
            <packagemanager>zypper</packagemanager>
            <locale>en_US</locale>
            <keytable>us</keytable>
            <timezone>America/Chicago</timezone>
            <rpm-excludedocs>true</rpm-excludedocs>
            <rpm-check-signatures>false</rpm-check-signatures>
        </preferences>
        <users>
            <user password="$1$wYJUgpM5$RXMMeASDc035eX.NbYWFl0" home="/root" name="root" groups="root"/>
        <user password="$1$wYJUgpM5$RXMMeASDc035eX.NbYWFl0" home="/home/tux" name="tux" groups="users"/>
        </users>
        <repository type="rpm-md" alias="kiwi" priority="1">
            <source path="obs://Virtualization:Appliances:Builder/Factory"/>
        </repository>
        <repository type="yast2" alias="Tumbleweed" imageinclude="true">
            <source path="https://download.opensuse.org/tumbleweed/repo/oss"/>
        </repository>
        <repository type="yast2" alias="Testing" imageinclude="false">
            <source path="https://download.opensuse.org/repositories/home:/malcolmlewis:/TESTING/openSUSE_Tumbleweed/"/>
        </repository>
        <repository type="yast2" alias="General" imageinclude="false">
        <source path="https://download.opensuse.org/repositories/home:/malcolmlewis:/openSUSE_General/openSUSE_Tumbleweed/"/>
        </repository>
        <packages type="image">
            <package name="patterns-openSUSE-base"/>
            <package name="grub2-branding-openSUSE"/>
            <package name="ifplugd"/>
            <package name="iputils"/>
            <package name="vim"/>
            <package name="grub2"/>
            <package name="grub2-i386-pc"/>
            <package name="syslinux"/>
            <package name="lvm2"/>
            <package name="fontconfig"/>
            <package name="fonts-config"/>
            <package name="tar"/>
            <package name="openssh"/>
            <package name="iproute2"/>
            <package name="less"/>
            <package name="bash-completion"/>
            <package name="dhcp-client"/>
            <package name="which"/>
            <package name="kernel-default"/>
            <package name="timezone"/>
        <package name="cage"/>
        <package name="Mesa"/>
        <package name="noto-sans-fonts"/>
        <package name="luakit"/>
        <package name="uuid"/>
        <package name="kernel-firmware"/>
        <package name="command-not-found"/>
        <package name="pciutils"/>
        <package name="psmisc"/>
        <package name="twin"/>
        <package name="gpm"/>
        <package name="sensors"/>
        <package name="lsof"/>
        <package name="wget"/>
        <package name="shellinabox"/>
        <package name="dejavu-fonts"/>
        </packages>
        <packages type="iso">
            <package name="gfxboot-branding-openSUSE"/>
            <package name="dracut-kiwi-live"/>
        </packages>
        <packages type="bootstrap">
            <package name="udev"/>
            <package name="filesystem"/>
            <package name="glibc-locale"/>
            <package name="cracklib-dict-full"/>
            <package name="ca-certificates"/>
        <package name="ca-certificates-mozilla"/>
            <package name="openSUSE-release"/>
        </packages>
    </image>
    The above contains luakit for a webbrowser and cage to run a wayland session for luakit

    To build I use;
    Code:
    kiwi --type iso system build --description /stuff/kiwi_images/JeOS-Tumbleweed --target-dir /stuff/kiwi_images/
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  9. #9

    Default Re: How to build rescue system like the one on installation DVD ?

    Quote Originally Posted by malcolmlewis View Post
    Haha, "twin" is great! I've never heard of it even though I've been using Linux for a looong time.

    I guess I'll give it another try with kiwi and a configuration similar to yours.

    Thanks a lot!
    Hendrik

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •