Move ExtractFile from hyperkit to drivers

So that it can be used in other drivers too
pull/19487/head
Anders F Björklund 2024-08-18 18:25:23 +02:00 committed by Medya Ghazizadeh
parent 5c5951c18e
commit 8d17e2cbde
4 changed files with 3 additions and 3 deletions

View File

@ -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
}
}

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package hyperkit
package drivers
import (
"fmt"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package hyperkit
package drivers
import (
"testing"