mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
Merge pull request #12251 from mvo5/fakeinstaller-fix-seeding-dir
tests: ensure that fakeinstaller put the seed into the right place
This commit is contained in:
@@ -278,6 +278,11 @@ func createSeedOnTarget(bootDevice, seedLabel string) error {
|
||||
dataMnt := runMntFor("ubuntu-data")
|
||||
src := dirs.SnapSeedDir
|
||||
dst := dirs.SnapSeedDirUnder(dataMnt)
|
||||
// Remove any existing seed on the target fs and then put the
|
||||
// selected seed in place on the target
|
||||
if err := os.RemoveAll(dst); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := os.MkdirAll(filepath.Dir(dst), 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user