tech-install archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Installing NetBSD 8.2 on model 375



I wrote:

> > martin.trusler@ wrote:
> > 
> > > However, the following are also in the same directory but are not
> > > recognised:
> > > debug.tgz
> > > kern-GENERIC.tgz
> > > modules.tgz
> > > tests.tgz
> > > six more files x*.tgz
> 
>  :
> 
> > I'll check how the INSTALL kernel goes on my 425e etc.
> 
> I've found a problem in miniroot installation problem.
 :
> The attached patch should resolve all issue so I'll commit this
> soon and send a pullup requests.

I've committed fixes (with some modifications) and several imrovements:

https://mail-index.netbsd.org/source-changes/2020/12/05/msg124826.html
 The kernel and X sets should be specified in MD miniroot scripts.

https://mail-index.netbsd.org/source-changes/2020/12/05/msg124828.html
 Add modules set for default sets on miniroot installation.

https://mail-index.netbsd.org/source-changes/2020/12/05/msg124829.html
 Add missing md_get_partition_range() that causes installation failure.

https://mail-index.netbsd.org/source-changes/2020/12/05/msg124830.html
 Appease awk warnings on suppressing dmesg timestamps.

https://mail-index.netbsd.org/source-changes/2020/12/05/msg124831.html
 Explicitly sort set names fetched via ftp nlist.

https://mail-index.netbsd.org/source-changes/2020/12/05/msg124833.html
 Use proper release version strings ("9.1" rather than "91") in banners.

https://mail-index.netbsd.org/source-changes/2020/12/05/msg124834.html
 Inform the default installation directory in the official ftp server.


The last problem is "ftp control session gets timeout" that causes
failure of fetching binary.  I've also confirmed the attached patch
(fetching sets per each set) works around so I'll also commit it
if there is no particular objection.

I've also put a patched NetBSD/hp300 9.1 based miniroot.fs
including this ftp patch:
 https://cdn.netbsd.org/pub/NetBSD/arch/hp300/miniroot/miniroot-9.1_20201206.fs.gz 

---
diff --git a/miniroot/install.sub b/miniroot/install.sub
index cc03489..93944dc 100644
--- a/miniroot/install.sub
+++ b/miniroot/install.sub
@@ -725,6 +725,16 @@ __install_ftp_2
 		fi
 	done
 	rm -f /tmp/ftp-dir.sh /tmp/fname_filter.sh
+	rm -f /tmp/ftp-script.sh
+
+	# Prepare ftp-fetch script to fetch binary sets
+	_download_dir=INSTALL
+	_ftp_opts=""
+	_ftp_url="ftp://$_ftp_server_login:$_ftp_server_password@$_ftp_server_ip$_ftp_server_dir/";
+	echo "#!/bin/sh" > /tmp/ftp-fetch.sh
+	echo "cd /mnt" >> /tmp/ftp-fetch.sh
+	echo "mkdir -p $_download_dir" >> /tmp/ftp-fetch.sh
+
 
 	while : ; do
 		echo "The following sets are available for extraction:"
@@ -745,7 +755,7 @@ __install_ftp_2
 		echo ""
 
 		# Get name of the file and add extraction command
-		# to the ftp-script.
+		# to the ftp-fetch script.
 		if [ -z "$_next" ]; then resp=n; else resp=y; fi
 		echo -n "Continue to add filenames [$resp]? "
 		getresp "$resp"
@@ -756,8 +766,16 @@ __install_ftp_2
 		echo -n "File name [$_next]? "
 		getresp "$_next"
 		if isin $resp $_sets; then
-			echo "get $resp |\"pax -zr${verbose_flag}pe\"" >> \
-					/tmp/ftp-script.sh
+			echo "echo Fetching $resp:" >> \
+					/tmp/ftp-fetch.sh
+			echo "ftp ${_ftp_opts} -o $_download_dir/$resp ${_ftp_url}$resp" >> \
+					/tmp/ftp-fetch.sh
+			echo "echo Extracting $resp:" >> \
+					/tmp/ftp-fetch.sh
+			echo "pax -zr${verbose_flag}pe -f $_download_dir/$resp" >> \
+					/tmp/ftp-fetch.sh
+			echo "rm -f $_download_dir/$resp" >> \
+					/tmp/ftp-fetch.sh
 			_setsdone="$resp $_setsdone"
 		else
 			echo "You entered an invalid filename."
@@ -765,11 +783,8 @@ __install_ftp_2
 		fi
 	done
 
-	echo "quit" >> /tmp/ftp-script.sh
-	echo "__end_commands" >> /tmp/ftp-script.sh
-
-	sh /tmp/ftp-script.sh
-	rm -f /tmp/ftp-script.sh
+	sh /tmp/ftp-fetch.sh
+	rm -f /tmp/ftp-fetch.sh
 	echo "Extraction complete."
 }
 
---

Thanks,

---
Izumi Tsutsui



Home | Main Index | Thread Index | Old Index