Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for stretch in archive #59

Open
JesperAP opened this issue Nov 17, 2023 · 3 comments
Open

Build for stretch in archive #59

JesperAP opened this issue Nov 17, 2023 · 3 comments

Comments

@JesperAP
Copy link

Hello,

Is there anybody who can build OpenSwitch again but change the stretch URLS from deb.debian.org to archive.debian.org? My installation fails because of that.

Or if there is documentation on how to do it, I am willing to try it myself.

We've got useless Dell S4128F-ON switches right now because there is no OS that works and we don't have licenses for any working OS.

@Timpan4
Copy link

Timpan4 commented Nov 30, 2023

We have the same issue but on Dell S4048-ON

@JesperAP
Copy link
Author

No-one who can do this?

Multiple people have this issue...

@marloncalvo
Copy link

marloncalvo commented Nov 9, 2024

Hey folks,

The issue is with the following post-installation hook script: opx-onie-installer/inst-hooks/98-set-apt-sources.stretch.postinst.sh. It adds a set of debian sources which are not available anymore. We can remove these sources from the post-installation script (caveat is apt won't have any sources 😊).

I modified the installer PKGS_OPX-3.2.1-installer-x86_64.bin from the official OpenSwitch website, removed the aforementioned source from the installer, and successfully installed latest OPX on S4112F-ON!

Steps to create new installer:

  1. Open official .bin from OpenSwitch website.
  2. Remove apt sources from image installation:
    1. tar xf -c image.tar.gz > some_folder/, where image.tar.gz is content from __IMAGE__ section from .bin.
    2. Go to some_folder/root/inst-hooks/98-set-apt-sources.stretch.postinst.sh, and modify it to either use new sources or not add any sources.
    3. tar cf some_folder image.tar.gz
    4. Copy image.tar.gz contents into .bin!
  3. Remove/update image checksum check from installer script:
    1. Base64 decode the content: base64 -d installer.tar.gz.b64 > installer.tar.gz.
    2. Extract contents: tar xf installer.tar.gz.
    3. Remove/update install_support.sh image_checksum check.
    4. Create archive: tar czf "$INSTALLER_OUTPUT" installer/
    5. Base64 encode archive: base64 -w 76 "$INSTALLER_OUTPUT" > "$INSTALLER_OUTPUT_BASE64"
    6. Insert into .bin.
  4. Install!

Here's the installer I created: PKGS_OPX-3.2.1-installer-x86_64_modified.bin

I think we could fork and patch the current .bin build system, but we need to fix dependencies on deb.openswitch.com and other sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants