@@ -103,6 +103,10 @@ func validateInput(c *cli.Context) error {
103
103
}
104
104
105
105
func createRootfsFromSSH (c * cli.Context ) (string , error ) {
106
+ _ , err := utils .GetBinaryPath ("blkid" )
107
+ if err != nil {
108
+ Log .Warnf ("Skipping running fsck on the Artifact: %v" , errBlkidNotFound )
109
+ }
106
110
rootfsFilename , err := getDeviceSnapshot (c )
107
111
if err != nil {
108
112
return rootfsFilename , cli .NewExitError ("SSH error: " + err .Error (), 1 )
@@ -112,7 +116,6 @@ func createRootfsFromSSH(c *cli.Context) (string, error) {
112
116
fstype , err := imgFilesystemType (rootfsFilename )
113
117
if err != nil {
114
118
if err == errBlkidNotFound {
115
- Log .Warnf ("Skipping running fsck on the Artifact: %v" , err )
116
119
return rootfsFilename , nil
117
120
}
118
121
return rootfsFilename , cli .NewExitError (
@@ -343,7 +346,6 @@ func writeRootfs(c *cli.Context) error {
343
346
)
344
347
}
345
348
}
346
-
347
349
if ! c .Bool ("no-progress" ) {
348
350
ctx , cancel := context .WithCancel (context .Background ())
349
351
go reportProgress (ctx , aw .State )
@@ -1005,6 +1007,7 @@ func recvSnapshot(dst io.Writer, src io.Reader) (int64, error) {
1005
1007
for {
1006
1008
nr , err := src .Read (buf )
1007
1009
if err == io .EOF {
1010
+ fmt .Println ()
1008
1011
break
1009
1012
} else if err != nil {
1010
1013
return written , errors .Wrap (err ,
0 commit comments