You are not logged in.

#1 2022-07-12 17:34:13

salmon
Member
Registered: 2022-05-27
Posts: 42

get a .sh bash script on an iso

i'm messing around with making a install script myself just cause i end up bricking my system lot lol.
anyway i'm trying to get the script in an iso that a vm can use
if i use mkisofs from the cdrtools (i think) package it makes a iso but if i boot it in a vm i get
https://github.com/TH3-S4LM0N/AFishMade … g?raw=true
in qemu

what do i have to do to add the .sh file and keep the iso bootable on both a vm and an actual pc (if it makes a difference)


Mod Edit - Replaced oversized image with link.
CoC - Pasting pictures and code

Last edited by Slithery (2022-07-12 17:57:26)

Offline

#2 2022-07-12 17:58:49

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: get a .sh bash script on an iso

You need to add the file to an already bootable iso instead of just creating a new blank iso containing only that file.
What exact commands are you using to generate your iso?

If you are looking to create a bootable Arch installation iso then take a look at...
https://wiki.archlinux.org/title/archiso


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2022-07-13 23:59:18

salmon
Member
Registered: 2022-05-27
Posts: 42

Re: get a .sh bash script on an iso

long wait for reply sry
completely seperate ( i think ) problem now
anyway use mkarchiso with my .sh in airootfs etc
if i try to write that iso (or a normal iso from a mirror) with any of these methods it just kinda dosent do anything. not much more info than that. same thing on 2 different 16g flash drives.
honestly no idea so

Offline

#4 2023-05-12 01:47:30

S1lverCr0w
Member
Registered: 2023-05-12
Posts: 1

Re: get a .sh bash script on an iso

I was doing exactly the same 2 days ago.

Now it takes me 2:50 minutes:seconds to fully install arch.

I have used curl to download the script from my github page to the live USB.

I can post the exact command in about 8 hours as I don't have access to my pc rn.

if i remember correctly it was:

curl https://raw.githubusercontent.com/S1lve … install.sh > arch_install.sh

it has to be the link to the raw file in GitHub

edit:
the command is correct

$ curl [link to raw github script] > [output file name]

Last edited by S1lverCr0w (2023-05-12 09:51:52)

Offline

Board footer

Powered by FluxBB