If you don't want to here the long version, but still want to answer my question, please skip down to THE BOTTOM!
You can probably tell what I want to do already from the title, so I'll sum up what I have already done real quick:
First off, for those that don't know, a preseed file is a script which auto answers all the questions in the install process for you, so you can start it, walk away, and come back with a full system without having to babysit the install and answer all the questions. Here is a handy page if you are interested yourself: https://help.ubuntu.com/7.04/install...eed-using.html
1) Tried installing from CD and specifying to look on a thumb drive for the preseed file through a boot parameter. Could not get it to find the file, not sure where it would look or how it would mount the dive.
2) Made a boot thumb drive, and placed preseed file on there. Worked fine, but didn't find file until it looked for it while looking for iso on the thumb drive.
3) Improved number of questions I had to answer by placing file right in the initrd file. This is tricky, if you are curious about it, you can ask. This should, in theory, also work if you edited the initrd on an iso and burned it.
Now, at the end of the install, I want to run a script that does some further set up aside from the installation. Here is a section of the default provided preseed file:
Code:
Now, using this new information, I want to run a script. Trouble is, that when I do this, using
d-i preseed/late_command string sh testscript.sh
I get an error that the file cannot be found. My theory is that during the final stages of the install, it is running from the hard drive and not the installation device. If this is wrong, or you have a different solution than the answer to the question at the bottom, please feel free to voice it.
// THE BOTTOM \\
Therefore, during installation, I want to try to place a file from the boot device onto the hard drive. How would I go about doing this, what/where on the .iso do I edit?
Good afternoon!
Could you please clarify me how to use correct Debian's preseed file?
I have a kernel version 4.15.0-20-generic (Ubuntu 18.04) and default initrd (both downloaded from official repo)
Also I have a little kickstart file and main preseed cfg file
Installation start by iPXE... (4 Replies)
Hi, im trying a lab with Solaris 11.2 in SunFire T2000
I read about know problem with ldomsmanager version. Solaris 11 comes with ldomsmanager 2.2 and T2000 needs 1.2.
I need to install ldomsmanager version 1.2 but i donīt know why... i canīt find it at oracle site.
I found oracle VM for SPARC... (0 Replies)
Hi,
Firstly, I want to say hello to all of you guys. My first post here... I have issue with CentOS and I hope that there is someone who can help or even explain what could cause this kind of situation.
I have installed CentOS 5.7 x86_64 into Hyper-V (Windows Server 2012 R2) environment. After... (0 Replies)
Dear forum,
This is my first post here, nice to meet you all.
My question might be a beginner one, also it might have been answered before (I searched but found nothing).
I am a new Unix user. I am using a terminal to connect to Ubuntu 12.04.2 LTS (GNU/Linux 3.2.0-48-generic x86_64);... (10 Replies)
I am using blow script :--
#!/bin/bash
FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not
if
then
# echo "process found"
exit 0;
else
echo "process not found"
exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
I was hoping to edit the command below to copy a file "start.bin" from the install cd to /root on the installation machine.
d-i preseed/late_command string \
wget -O /target/root/start.bin 'http://abc.start.bin' \
&& in-target chmod 755 /root/start.bin \
My best guess is it would... (0 Replies)
Hi All,
I was wondering if I can install AIX 6.1 on my D harddrive and have Windows 7 on my C harddrive. If so, can anybody help me with the installation of AIX? I am totally new to AIX and don't know how to install it. Tried getting info from google on how to install AIX but couldn't... (2 Replies)
Hello there!
I am not certain that this is the proper place to post this, but I will try anyway.
I am trying to install Ubuntu using a preseed on a USB thumb drive, and I am having problems. Hopefully someone here is able to help me.
I have a file named 'preseed.cfg' in the root directory... (4 Replies)
Hi,
i have a script which need to do behave differently when run as a startup process from init.d/ rc2.d script and when run manually from shell.
How do i distinguish whether my script is run by init process or by shell??
Will the command
/proc/$$/psinfo | grep "myscript" work well???... (2 Replies)