mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 04:22:58 +02:00
Installer fuer ein read-only-Dateisystem angepasst.
mingetty entfernt, da wir agetty verwenden. issue veraendert git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@396 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -335,7 +335,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
/* read source drive letter */
|
||||
if ((handle = fopen("/source_device", "r")) == NULL) {
|
||||
if ((handle = fopen("/tmp/source_device", "r")) == NULL) {
|
||||
errorbox(ctr[TR_ERROR_PROBING_CDROM]);
|
||||
goto EXIT;
|
||||
}
|
||||
@@ -457,11 +457,11 @@ int main(int argc, char *argv[])
|
||||
* the disk.
|
||||
*/
|
||||
/* Don't use mysystem here so we can redirect output */
|
||||
sprintf(commandstring, "/bin/sfdisk -s /dev/%s > /disksize 2> /dev/null", harddrive);
|
||||
sprintf(commandstring, "/bin/sfdisk -s /dev/%s > /tmp/disksize 2> /dev/null", harddrive);
|
||||
system(commandstring);
|
||||
|
||||
/* Calculate amount of disk space */
|
||||
if ((handle = fopen("/disksize", "r")))
|
||||
if ((handle = fopen("/tmp/disksize", "r")))
|
||||
{
|
||||
fgets(line, STRING_SIZE-1, handle);
|
||||
if (sscanf (line, "%s", string)) {
|
||||
|
||||
@@ -11,7 +11,7 @@ echo "Scanning source media"
|
||||
for DEVICE in $(kudzu -qps -t 30 -c CDROM | grep device: | cut -d ' ' -f 2 | sort | uniq); do
|
||||
mount /dev/${DEVICE} /cdrom 2> /dev/null
|
||||
if [ -e /cdrom/boot ]; then
|
||||
echo -n ${DEVICE} > /source_device
|
||||
echo -n ${DEVICE} > /tmp/source_device
|
||||
exit 0
|
||||
fi
|
||||
umount /cdrom 2> /dev/null
|
||||
@@ -21,7 +21,7 @@ done
|
||||
for DEVICE in $(kudzu -qps -t 30 -c HD | grep device: | cut -d ' ' -f 2 | sort | uniq); do
|
||||
mount /dev/${DEVICE}1 /cdrom 2> /dev/null
|
||||
if [ -e /cdrom/boot ]; then
|
||||
echo -n ${DEVICE}1 > /source_device
|
||||
echo -n ${DEVICE}1 > /tmp/source_device
|
||||
exit 1
|
||||
fi
|
||||
umount /cdrom 2> /dev/null
|
||||
|
||||
Reference in New Issue
Block a user