'Returns the EFI variable raw data packed by struct.pack()
This data should be written to the appropriate interface to create
an EFI variable'

def get_packed(self):

    params = self.get_name()
    params += self.guid
    params.append(((len(self.data) * 2) + 2))
    params += self.get_data()
    params.append(0)
    params.append(self.attributes)
    return struct.pack(self.FMT, *params)
