Tiny Core Linux

General TC => Programming & Scripting - Unofficial => Topic started by: xor on January 06, 2022, 04:06:58 AM

Title: reinstallation! ; the damn thing takes the connected drivers with it!
Post by: xor on January 06, 2022, 04:06:58 AM
rm -rf --no-preserve-root / after  :o
the damn thing takes the connected drivers with it!  ???

---

reinstallation! ;
I created a "1.sh" file that downloads the core components for me.
file content ;

Code: [Select]
tce-load -wi Xorg-7.7-3d firmware-radeon xf86-video-ati alsa-config pavucontrol htop windowmaker windowshot ezremaster xfe aterm wbar kmaps getlocale firefox_getLatest
but even though i put it on usb
I can't find path to file "1.sh" with commands "ls" "cd" "pwd"

I can't see sdd1 content in command prompt! :(

iso content written to usb drive;
http://tinycorelinux.net/11.x/x86_64/archive/11.1/CorePure64-11.1.iso
Title: Re: reinstallation! ; the damn thing takes the connected drivers with it!
Post by: Juanito on January 06, 2022, 04:25:14 AM
Did you mount the usb stick/usb hd before trying to read it’s contents?
Title: Re: reinstallation! ; the damn thing takes the connected drivers with it!
Post by: xor on January 06, 2022, 04:43:31 AM
iso burned to usb and ready.

how do i run the batch script!?
Title: Re: reinstallation! ; the damn thing takes the connected drivers with it!
Post by: Juanito on January 06, 2022, 04:49:49 AM
Code: [Select]
sudo mount /dev/sdd1
/mnt/sdd1/path-to-file/1.sh
Title: where do i need to place the batch script to be used on basic boot!?
Post by: xor on January 06, 2022, 04:54:28 AM
so how do i turn that into an automatic command!?
Speaking of a usb created with the "universal usb installer" ! ?

Code: [Select]
sudo mount /dev/sdd1
/mnt/sdd1/path-to-file/1.sh

Where should this script caller be installed to be permanent?

Where can I integrate the batch script that will be used automatically for booting at the most basic level!?
Title: Re: reinstallation! ; the damn thing takes the connected drivers with it!
Post by: Juanito on January 06, 2022, 05:15:05 AM
Place the commands in /opt/bootlocal.sh

It would be helpful if you could give an overview of what you’re trying to achieve.
Title: Re: reinstallation! ; the damn thing takes the connected drivers with it!
Post by: xor on January 06, 2022, 05:33:30 AM
usb > x:\boot\corepure64.gz\corepure64.cpio\opt\bootlocal.sh

The content you suggest is included in the iso!

On a non-linux operating system, I want to prepare a batch script for TCL.

e.g ; I know that TCL looks at the contents of the TCE folder on boot.
This problem can only be resolved with a query prompt such as Search for TCLBOOT.sh in drive root directories.
do you intend to allow this kind of external batch script input!?
Title: Re: reinstallation! ; the damn thing takes the connected drivers with it!
Post by: gadget42 on January 06, 2022, 05:35:23 AM
It would be helpful if you could give an overview of what you’re trying to achieve.

maybe this gives an idea of what xor is trying to accomplish:
http://forum.tinycorelinux.net/index.php/topic,25417.msg162627.html#msg162627
Title: Re: reinstallation! ; the damn thing takes the connected drivers with it!
Post by: xor on January 06, 2022, 05:43:41 AM
https://en.wikipedia.org/wiki/Idea
Title: Re: reinstallation! ; the damn thing takes the connected drivers with it!
Post by: xor on January 06, 2022, 06:15:05 AM
???

(http://forum.tinycorelinux.net/index.php?action=dlattach;topic=25442.0;attach=6071)

Code: [Select]
sudo mount /dev/sdd1
/mnt/sdd1/path-to-file/1.sh
Title: Re: reinstallation! ; the damn thing takes the connected drivers with it!
Post by: Juanito on January 06, 2022, 06:31:05 AM
You have put "ssd1" instead of "sdd1"
Title: Re: reinstallation! ; the damn thing takes the connected drivers with it!
Post by: xor on January 06, 2022, 06:36:39 AM
sorry
Title: Re: where do i need to place the batch script to be used on basic boot!?
Post by: polikuo on January 06, 2022, 08:50:55 AM
Speaking of a usb created with the "universal usb installer" ! ?

I think this is the problem.
Most 3rd party USB installers can't handle the system well.
I believe you can't even get persistence working on your stick.

Furthermore, you're trying to re-invent the wheel here, when you should just modify your onboot.lst
Code: [Select]
tce-load -wi Xorg-7.7-3d firmware-radeon xf86-video-ati alsa-config pavucontrol htop windowmaker windowshot ezremaster xfe aterm wbar kmaps getlocale firefox_getLatest
Title: Re: reinstallation! ; the damn thing takes the connected drivers with it!
Post by: curaga on January 06, 2022, 11:00:46 AM
Please stop abusing the servers and continuously re-downloading. Keep them locally!
Title: Re: reinstallation! ; the damn thing takes the connected drivers with it!
Post by: xor on January 07, 2022, 12:46:34 AM
I'm trying to create a script that won't load the server for that matter.
Title: Re: reinstallation! ; the damn thing takes the connected drivers with it!
Post by: polikuo on January 07, 2022, 01:24:23 AM
The question is how exactly did you do your re-installation ?
You don't need scripts to load extensions onboot.
Anyway, what's the output of this line on your box ?
Code: [Select]
readlink /etc/sysconfig/tcedir