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-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page