Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Leap 42.1: Upgrade off-line from ISO image

  1. #1

    Default Leap 42.1: Upgrade off-line from ISO image

    Hi,

    I'm trying to do an off-line upgrade of Leap 42.1 using an ISO image of the 42.2 installation disk. I've found instructions how to use iso file for installation (for example here: https://forums.opensuse.org/showthre...isk-with-Grub2). The system boots, but it immediately jumps to the installation procedure - while when booted from the physical DVD, it offers an option to select Install or Upgrade first - and a couple of other options. When I canceled the installation, I managed to eventually find an upgrade option, but the upgrader only tried to find its files on the hard disks, while the ISO was invisible.

    How can I trick the bootloader to run the upgrade from ISO file instead of install, or make an upgrade from a harddrive? I have an LVM installation and very limited space on traditional partitions.

    Thank you very much for your help in advance. Any hints would be welcome.

    Best regards,

    (js).

  2. #2
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,579

    Default Re: Leap 42.1: Upgrade off-line from ISO image

    The openSUSE documentation for installation and upgrade procedures is here: <https://doc.opensuse.org/documentati...tup/index.html>.
    The openSUSE Reference guide (GRUB and LVM information) is here: <https://doc.opensuse.org/documentati...nce/index.html>.
    The Release notes are here: <https://doc.opensuse.org/release-not...2.3/index.html>.
    Quote Originally Posted by JanStozek View Post
    The system boots, but it immediately jumps to the installation procedure - while when booted from the physical DVD, it offers an option to select Install or Upgrade first - and a couple of other options. When I canceled the installation, I managed to eventually find an upgrade option, but the upgrader only tried to find its files on the hard disks, while the ISO was invisible.
    I've never noticed that, when an upgrade is performed with an openSUSE ISO image that, the upgrade procedure -- assuming that, one selects the upgrade procedure and not the installation procedure -- does anything it shouldn't do.

    Please be aware that, the upgrade procedure usually doesn't touch any existing configuration files in the '/etc/' tree -- it drops the latest version of the configuration as a "rpm.new" file alongside the existing configuration.

    There are openSUSE SDBs for upgrading:
    • "Offline upgrade": <https://en.opensuse.org/SDBffline_upgrade>. -- Note the 'rcrpmconfigcheck' in the "After the upgrade" section -- please ignore the "Smiley" in the URL display: the link to the URL is OK AFAICS but, we seem to have a Forums display issue here . . .
    • "System upgrade": only relevant for an upgrade from the immediately previous version -- "Leap 42.2 to Leap 42.3" for example: <https://en.opensuse.org/SDB:System_upgrade>.

  3. #3

    Default Re: Leap 42.1: Upgrade off-line from ISO image

    Quote Originally Posted by dcurtisfra View Post
    I've never noticed that, when an upgrade is performed with an openSUSE ISO image that, the upgrade procedure -- assuming that, one selects the upgrade procedure and not the installation procedure -- does anything it shouldn't do.
    That's exactly my problem.
    I can't tell what the upgrade procedure does, because when I boot my box from ISO image I never have a chance to select the procedure - it immediately jumps to install. If I boot from a DVD (made from the same ISO) - the bootloader gives me a chance to decide. When I boot from the ISO image itself - never. Perhaps it's because the selection is done by a DVD's bootloader, and my HDD grub jumps directly to linux files rather than pass control to the iso's bootloader.

    Thanks for the documentation. I have already partially read it, but I'll go through it again.

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: Leap 42.1: Upgrade off-line from ISO image

    Is your machine to be upgraded a physical machine or a virtual machine, and if virtualized what technology are you using?

    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!

  5. #5
    Join Date
    Sep 2012
    Posts
    7,105

    Default Re: Leap 42.1: Upgrade off-line from ISO image

    Quote Originally Posted by JanStozek View Post
    when I boot my box from ISO image I never have a chance to select the procedure - it immediately jumps to install
    You still did not explain how you "booted from ISO image". And no, I am not interested in links to random description in Internet - I'm interested in exact steps you performed.

  6. #6

    Default Re: Leap 42.1: Upgrade off-line from ISO image

    Quote Originally Posted by arvidjaar View Post
    You still did not explain how you "booted from ISO image". And no, I am not interested in links to random description in Internet - I'm interested in exact steps you performed.
    I provided the source of the code in my original post. I only adapted the file location to my configuration - that's why I thought posting the actual code was not necessary. Anyway, my /etc/grub.d/40_custom is below:
    Code:
    menuentry "openSUSE 42.2 Install DVD" {
      set isofile=/mnt/openSUSE-Leap-42.2-DVD-x86_64.iso
      set root=(hd4,6)
      loopback loop $isofile
      linux (loop)/boot/x86_64/loader/linux install=hd:$isofile
      initrd (loop)/boot/x86_64/loader/initrd
    }
    Of course, isofile and root entries match the physical location of the ISO file and /etc/grub.cfg file was updated. The menu entry is visible in the grub menu, and selecting it makes the system boot from the iso file - but as I already wrote, it jumps immediately to the installation program, skipping the selection between install, upgrade, and other boot-time options.

    I understand that the selection menu (https://doc.opensuse.org/documentati...boot_osuse.png) is done in grub as well, right? So I should have to either chain the iso image bootsector, or modify my own menu entry to jump straight to the upgrade procedure - right? But how to do it?

  7. #7

    Default Re: Leap 42.1: Upgrade off-line from ISO image

    Quote Originally Posted by tsu2 View Post
    Is your machine to be upgraded a physical machine or a virtual machine, and if virtualized what technology are you using?
    Physical, of course. Booting a VM from an ISO image is rather simple if you have access to the VM Manager, isn't it?

  8. #8
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,811

    Default Re: Leap 42.1: Upgrade off-line from ISO image

    Quote Originally Posted by JanStozek View Post
    Physical, of course. Booting a VM from an ISO image is rather simple if you have access to the VM Manager, isn't it?
    Please take into account that you and the others are separated through time, distance and assessment of each other level knowledge.

    Everything you do not explain explicit can not be taken for granted. When you think you can skip the exact description on how you "boot from the ISO file", then you apparently assume that others are doing the same day in day out. This might not be the case.
    It is not important if you think "Booting a VM from an ISO image is rather simple if you have access to the VM Manager, isn't it?". We do not know if you think it is simple, nor do you know if others think likewise.

    People here are spending their spare time in trying to help you. Part of this trying is to get feeling for what you are doing, why you are doing it, what the general working environment is and how you came to the point where you got stuck and decided to ask for help. For helping one often needs to more or less learn to think the same way as the OP thinks. This may take time and several posts going to and from. When you frustrate that process in posting in a slightly derogate way, the result will only be that people leave this thread and go for more rewarding tasks, like helping others, drinking a beer, going for a walk.

    HTH.
    Last edited by hcvv; 14-Oct-2017 at 01:20.
    Henk van Velden

  9. #9
    Join Date
    Sep 2012
    Posts
    7,105

    Default Re: Leap 42.1: Upgrade off-line from ISO image

    Quote Originally Posted by JanStozek View Post
    Code:
      set isofile=/mnt/openSUSE-Leap-42.2-DVD-x86_64.iso
      linux (loop)/boot/x86_64/loader/linux install=hd:$isofile
    What is /mnt filesystem type? Initial kernel supports limited number of filesystems, I'm sure for vfat, ext2 and iso9660.
    Last edited by hcvv; 14-Oct-2017 at 04:55.

  10. #10

    Default Re: Leap 42.1: Upgrade off-line from ISO image

    Quote Originally Posted by arvidjaar View Post
    What is /mnt filesystem type? Initial kernel supports limited number of filesystems, I'm sure for vfat, ext2 and iso9660.
    It's ext4 - though I do not think it really matters in this case: the computer does not refuse to boot, it just does something other than I would want it to do during and after the boot.

Page 1 of 2 12 LastLast

Posting Permissions

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