~jamesodhunt/snappy/verify-upgrade-was-applied-with-partial-test

« back to all changes in this revision

Viewing changes to partition/partition.go

partition/partition.go: bind mount /boot/grub

Show diffs side-by-side

added added

removed removed

Lines of Context:
702
702
                requiredChrootMounts = append(requiredChrootMounts, boot.mountpoint)
703
703
        }
704
704
 
 
705
        // add additional bootloader mounts, this is required for grub
 
706
        bootloader, err := getBootloader(p)
 
707
        if err == nil && bootloader != nil {
 
708
                for _, mount := range bootloader.AdditionalBindMounts() {
 
709
                        requiredChrootMounts = append(requiredChrootMounts, mount)
 
710
                }
 
711
        }
 
712
 
705
713
        for _, fs := range requiredChrootMounts {
706
714
                target := path.Join(p.MountTarget(), fs)
707
715