Skip to content

Commit

Permalink
Move ExtractFile from hyperkit to drivers
Browse files Browse the repository at this point in the history
So that it can be used in other drivers too
  • Loading branch information
afbjorklund authored and medyagh committed Aug 20, 2024
1 parent 5c5951c commit 8d17e2c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/drivers/hyperkit/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/drivers/hyperkit/iso.go → pkg/drivers/iso.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package hyperkit
package drivers

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package hyperkit
package drivers

import (
"testing"
Expand Down
File renamed without changes.

0 comments on commit 8d17e2c

Please sign in to comment.