summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/kickstart/custom_commands/wicboot.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-01-14 14:12:54 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-18 11:47:05 +0000
commitc8272380ceed8dd56237995eecbaca5f4c9645dd (patch)
tree84a1127804fd2ee4e9c9e3cc5fe3967339117db2 /scripts/lib/wic/kickstart/custom_commands/wicboot.py
parentc15ea825e735b14dcf38ddf44a0a4aa7db611144 (diff)
downloadpoky-c8272380ceed8dd56237995eecbaca5f4c9645dd.tar.gz
wic: remove pykickstart code
Removed pykickstart-related code as it's replaced by new kickstart parser. (From OE-Core rev: 30bb1f3b6b832f9be691350581458c5fdaaaad70) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/kickstart/custom_commands/wicboot.py')
-rw-r--r--scripts/lib/wic/kickstart/custom_commands/wicboot.py65
1 files changed, 0 insertions, 65 deletions
diff --git a/scripts/lib/wic/kickstart/custom_commands/wicboot.py b/scripts/lib/wic/kickstart/custom_commands/wicboot.py
deleted file mode 100644
index eb17dab6e1..0000000000
--- a/scripts/lib/wic/kickstart/custom_commands/wicboot.py
+++ /dev/null
@@ -1,65 +0,0 @@
1# ex:ts=4:sw=4:sts=4:et
2# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
3#
4# Copyright (c) 2014, Intel Corporation.
5# All rights reserved.
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License version 2 as
9# published by the Free Software Foundation.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License along
17# with this program; if not, write to the Free Software Foundation, Inc.,
18# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19#
20# DESCRIPTION
21# This module provides the OpenEmbedded bootloader object definitions.
22#
23# AUTHORS
24# Tom Zanussi <tom.zanussi (at] linux.intel.com>
25#
26from pykickstart.commands.bootloader import F8_Bootloader
27
28class Wic_Bootloader(F8_Bootloader):
29 def __init__(self, writePriority=10, appendLine="", driveorder=None,
30 forceLBA=False, location="", md5pass="", password="",
31 upgrade=False, menus=""):
32 F8_Bootloader.__init__(self, writePriority, appendLine, driveorder,
33 forceLBA, location, md5pass, password, upgrade)
34
35 self.menus = ""
36 self.ptable = "msdos"
37 self.source = ""
38 self.configfile = ""
39
40 def _getArgsAsStr(self):
41 retval = F8_Bootloader._getArgsAsStr(self)
42
43 if self.menus == "":
44 retval += " --menus=%s" %(self.menus,)
45 if self.ptable:
46 retval += " --ptable=\"%s\"" %(self.ptable,)
47 if self.source:
48 retval += " --source=%s" % self.source
49 if self.configfile:
50 retval += " --configfile=%s" % self.configfile
51
52 return retval
53
54 def _getParser(self):
55 parser = F8_Bootloader._getParser(self)
56 parser.add_option("--menus", dest="menus")
57 parser.add_option("--ptable", dest="ptable", choices=("msdos", "gpt"),
58 default="msdos")
59 # use specified source plugin to implement bootloader-specific methods
60 parser.add_option("--source", type="string", action="store",
61 dest="source", default=None)
62 parser.add_option("--configfile", type="string", action="store",
63 dest="configfile", default=None)
64 return parser
65