Move ExtractFile from hyperkit to drivers
So that it can be used in other drivers toopull/19487/head
parent
5c5951c18e
commit
8d17e2cbde
|
@ -427,7 +427,7 @@ func (d *Driver) extractKernel(isoPath string) error {
|
|||
{"/boot/initrd", "initrd"},
|
||||
} {
|
||||
fullDestPath := d.ResolveStorePath(f.destPath)
|
||||
if err := ExtractFile(isoPath, f.pathInIso, fullDestPath); err != nil {
|
||||
if err := pkgdrivers.ExtractFile(isoPath, f.pathInIso, fullDestPath); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
package hyperkit
|
||||
package drivers
|
||||
|
||||
import (
|
||||
"fmt"
|
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
package hyperkit
|
||||
package drivers
|
||||
|
||||
import (
|
||||
"testing"
|
Loading…
Reference in New Issue