|
|
| jhalfs, makefile restart (LFS build
only) |

|
2006-06-09 00:21:05 |
Manuel,
This is a first pass at a 'restart' mode for the
makefile. (please
excuse the poor structure). I interrupted my LFS build part
way through
the build of 066-glibc, rebooted the 'puter, entered the
jhalfs dir and
issued <make restart> It remounted the vfs and
restarted 066-glibc.
It is not perfect... your
opinion/suggestions/improvements??
G.
restart: restart_code all
restart_code:
if
[ -f ???-kernfs ]; then \
echo "Remounting the virtual filesystem"; \
mkdir -pv $(MOUNT_PT)/{dev,proc,sys};\
if [ ! -e $(MOUNT_PT)/dev/console ]; then \
mknod -m 600 $(MOUNT_PT)/dev/console c 5 1;\
fi;\
if [ ! -e $(MOUNT_PT)/dev/null ]; then \
mknod -m 666 $(MOUNT_PT)/dev/null c 1 3;\
fi;\
if ! mount -l | grep bind >/dev/null ; then \
mount --bind /dev $(MOUNT_PT)/dev;\
fi;\
if ! mount -l | grep "$(MOUNT_PT)/dev/pts"
>/dev/null ; then \
mount -vt devpts devpts $(MOUNT_PT)/dev/pts;\
fi;\
if ! mount -l | grep "$(MOUNT_PT)/dev/shm"
>/dev/null ; then \
mount -vt tmpfs shm $(MOUNT_PT)/dev/shm;\
fi;\
if ! mount -l | grep "$(MOUNT_PT)/proc"
>/dev/null ; then \
mount -vt proc proc $(MOUNT_PT)/proc;\
fi;\
if ! mount -l | grep "$(MOUNT_PT)/sys"
>/dev/null ; then \
mount -vt sysfs sysfs $(MOUNT_PT)/sys;\
fi;\
fi;
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
|
|
| jhalfs, makefile restart (LFS build
only) |

|
2006-06-09 13:01:35 |
George Boudreau wrote:
> Manuel,
>
> This is a first pass at a 'restart' mode for the
makefile. (please
> excuse the poor structure). I interrupted my LFS build
part way through
> the build of 066-glibc, rebooted the 'puter, entered
the jhalfs dir and
> issued <make restart> It remounted the vfs and
restarted 066-glibc.
> It is not perfect... your
opinion/suggestions/improvements??
>
> G.
>
>
>
> restart: restart_code all
>
>
Some additional restart code..
> restart_code:
if !
stat -c %N /tools | grep "$(MOUNT_PT)/tools"
>/dev/null ; then \
echo -e "\nThe symlink \"/tools\"
does not point to
\"$(MOUNT_PT)/tools\".\nCorrect the problem
and rerun\n" && false;\
fi;
> if [ -f ???-kernfs ]; then \
> echo "Remounting the virtual
filesystem"; \
> mkdir -pv $(MOUNT_PT)/{dev,proc,sys};\
> if [ ! -e $(MOUNT_PT)/dev/console ]; then \
> mknod -m 600 $(MOUNT_PT)/dev/console c 5 1;\
> fi;\
> if [ ! -e $(MOUNT_PT)/dev/null ]; then \
> mknod -m 666 $(MOUNT_PT)/dev/null c 1 3;\
> fi;\
> if ! mount -l | grep bind >/dev/null ; then \
> mount --bind /dev $(MOUNT_PT)/dev;\
> fi;\
> if ! mount -l | grep
"$(MOUNT_PT)/dev/pts" >/dev/null ; then \
> mount -vt devpts devpts $(MOUNT_PT)/dev/pts;\
> fi;\
> if ! mount -l | grep
"$(MOUNT_PT)/dev/shm" >/dev/null ; then \
> mount -vt tmpfs shm $(MOUNT_PT)/dev/shm;\
> fi;\
> if ! mount -l | grep
"$(MOUNT_PT)/proc" >/dev/null ; then \
> mount -vt proc proc $(MOUNT_PT)/proc;\
> fi;\
> if ! mount -l | grep "$(MOUNT_PT)/sys"
>/dev/null ; then \
> mount -vt sysfs sysfs $(MOUNT_PT)/sys;\
> fi;\
> fi;
>
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
|
|
| jhalfs, makefile restart (LFS build
only) |

|
2006-06-09 18:57:48 |
El Viernes, 9 de Junio de 2006 02:21, George Boudreau
escribió:
> It is not perfect... your
opinion/suggestions/improvements??
Looks that it should to work and is a very failsafe
approach.
I can't think on a better way at this moment.
--
Manuel Canales Esparcia
Usuario de LFS nº2886: http://www.linuxfroms
cratch.org
LFS en castellano: http://www.escomp
oslinux.org/lfs-es http://www.lfs-es.com
TLDP-ES: http://es.tldp.org
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
|
|
| jhalfs, makefile restart (LFS build
only) |

|
2006-06-10 11:37:57 |
Alle 20:57, venerdì 9 giugno 2006, M.Canales.es ha scritto:
can you show me the final exact code to restart LFS script
and where I have to
add ?
thankyou
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
|
|
| jhalfs, makefile restart (LFS build
only) |

|
2006-06-10 11:47:45 |
El Sábado, 10 de Junio de 2006 13:37, sacarde escribió:
> Alle 20:57, venerdì 9 giugno 2006, M.Canales.es ha
scritto:
>
> can you show me the final exact code to restart LFS
script and where I have
> to add ?
The code is in the jhalfs SVN trunk version.
How to add it to restart and old stopped build depend on how
old that build is
and requires to know very well how to jhalfs and the
Makefile works to can
fix possible issues.
I reccomend you to start a new build from scratch using
current jhalfs SVN
trunk code.
--
Manuel Canales Esparcia
Usuario de LFS nº2886: http://www.linuxfroms
cratch.org
LFS en castellano: http://www.escomp
oslinux.org/lfs-es http://www.lfs-es.com
TLDP-ES: http://es.tldp.org
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
|
|
| jhalfs, makefile restart (LFS build
only) |

|
2006-06-15 07:42:47 |
Alle 13:47, sabato 10 giugno 2006, hai scritto:
> I reccomend you to start a new build from scratch using
current jhalfs SVN
> trunk code.
I do it
I start LFS process
I stop process.......reboot
then I run:
mkdir /mnt/build_dir
mount /dev/hdxx /mnt/build_dir
export SRC_ARCHIVE=/mnt/build_dir/......
export LFS=/mnt/build_dir
cd /mnt/build_dir/jhalfs
ln -s /mnt/build_dir/tools /tools
make restart
and .....
it continue LFS building....
OK good
it finish
thankyou
p.s.
where can I found documentation to build BLSF in automated
way ?
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
|
|
| jhalfs, makefile restart (LFS build
only) |

|
2006-06-15 08:12:45 |
Alle 09:42, giovedì 15 giugno 2006, sacarde ha scritto:
>
> it continue LFS building....
>
> OK good
>
> it finish
......
sorry.....
now I dont find kernel .........???
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
|
|
| jhalfs, makefile restart (LFS build
only) |

|
2006-06-15 08:39:08 |
Alle 10:12, giovedì 15 giugno 2006, sacarde ha scritto:
> sorry.....
>
> now I dont find kernel .........???
I forgot -K param
!!!
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
|
|