mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 02:42:41 +00:00 
			
		
		
		
	Merge pull request #1196 from penguhyang/ubuntu_diskfull_log_to_mn
fix #954, ubuntu, diskfull, enable the pre-script log and post-script log can be forwarded to the MN
This commit is contained in:
		| @@ -22,7 +22,7 @@ The following behavior is observed during OS install: | ||||
| +  log        +----+----+----+----+----+----+----+----+----+----+ | ||||
| |             | CN | Y1           | Y2           | Y2           | | ||||
| +-------------+----+----+----+----+----+----+----+----+----+----+ | ||||
| | Installer   | MN | N  | N  | N  | Y6 | Y6 | N  | Y6 | Y6 | N  | | ||||
| | Installer   | MN | N  | N  | N  | Y6 | Y6 | Y6 | Y6 | Y6 | Y6 | | ||||
| +  log        +----+----+----+----+----+----+----+----+----+----+ | ||||
| |             | CN | Y5 | Y5 | Y5 | Y5 | Y5 | Y5 | Y5 | Y5 | Y5 | | ||||
| +-------------+----+----+----+----+----+----+----+----+----+----+ | ||||
|   | ||||
| @@ -5,6 +5,11 @@ fi | ||||
|  | ||||
| #!/bin/sh | ||||
|  | ||||
| if [ "$XCATDEBUGMODE" = "1" ] || [ "$XCATDEBUGMODE" = "2" ]; then | ||||
|     killall syslogd | ||||
|     syslogd -R #XCATVAR:XCATMASTER# | ||||
| fi | ||||
|  | ||||
| if [ ! -c /dev/vcs ]; then | ||||
|     mknod /dev/vcs c 7 0 | ||||
| fi | ||||
|   | ||||
| @@ -1,5 +1,15 @@ | ||||
| export XCATDEBUGMODE="#TABLEBLANKOKAY:site:key=xcatdebugmode:value#" | ||||
| if [ "$XCATDEBUGMODE" = "1" ] || [ "$XCATDEBUGMODE" = "2" ]; then | ||||
|     set -x | ||||
| fi | ||||
|  | ||||
| #!/bin/sh | ||||
|  | ||||
| if [ "$XCATDEBUGMODE" = "1" ] || [ "$XCATDEBUGMODE" = "2" ]; then | ||||
|     killall syslogd | ||||
|     syslogd -R #XCATVAR:XCATMASTER# | ||||
| fi | ||||
|  | ||||
| if [ ! -c /dev/vcs ]; then | ||||
|     mknod /dev/vcs c 7 0 | ||||
| fi | ||||
| @@ -222,3 +232,7 @@ echo "    ." >> /tmp/partitionfile | ||||
|  | ||||
| exit 0 | ||||
|  | ||||
| if [ "$XCATDEBUGMODE" = "1" ] || [ "$XCATDEBUGMODE" = "2" ]; then | ||||
| then | ||||
|     set +x | ||||
| fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user