linux-image: Make initramfs support unconditional
svn path=/dists/sid/linux/; revision=21471
This commit is contained in:
parent
4b87a520f9
commit
bcff92529e
|
@ -32,7 +32,6 @@ class Gencontrol(Base):
|
||||||
'image': {
|
'image': {
|
||||||
'bootloaders': config.SchemaItemList(),
|
'bootloaders': config.SchemaItemList(),
|
||||||
'configs': config.SchemaItemList(),
|
'configs': config.SchemaItemList(),
|
||||||
'initramfs': config.SchemaItemBoolean(),
|
|
||||||
'initramfs-generators': config.SchemaItemList(),
|
'initramfs-generators': config.SchemaItemList(),
|
||||||
},
|
},
|
||||||
'relations': {
|
'relations': {
|
||||||
|
@ -245,7 +244,6 @@ class Gencontrol(Base):
|
||||||
override_localversion = config_image.get('override-localversion', None)
|
override_localversion = config_image.get('override-localversion', None)
|
||||||
if override_localversion is not None:
|
if override_localversion is not None:
|
||||||
vars['localversion-image'] = vars['localversion_headers'] + '-' + override_localversion
|
vars['localversion-image'] = vars['localversion_headers'] + '-' + override_localversion
|
||||||
vars['initramfs'] = 'YES' if config_image.get('initramfs', True) else ''
|
|
||||||
vars['image-stem'] = config_image.get('install-stem')
|
vars['image-stem'] = config_image.get('install-stem')
|
||||||
|
|
||||||
self._setup_makeflags(self.flavour_makeflags_base, makeflags, config_base)
|
self._setup_makeflags(self.flavour_makeflags_base, makeflags, config_base)
|
||||||
|
@ -278,19 +276,18 @@ class Gencontrol(Base):
|
||||||
for field in 'Depends', 'Provides', 'Suggests', 'Recommends', 'Conflicts', 'Breaks':
|
for field in 'Depends', 'Provides', 'Suggests', 'Recommends', 'Conflicts', 'Breaks':
|
||||||
image_fields[field] = PackageRelation(config_entry_image.get(field.lower(), None), override_arches=(arch,))
|
image_fields[field] = PackageRelation(config_entry_image.get(field.lower(), None), override_arches=(arch,))
|
||||||
|
|
||||||
if config_entry_image.get('initramfs', True):
|
generators = config_entry_image['initramfs-generators']
|
||||||
generators = config_entry_image['initramfs-generators']
|
l = PackageRelationGroup()
|
||||||
l = PackageRelationGroup()
|
for i in generators:
|
||||||
for i in generators:
|
i = config_entry_relations.get(i, i)
|
||||||
i = config_entry_relations.get(i, i)
|
l.append(i)
|
||||||
l.append(i)
|
a = PackageRelationEntry(i)
|
||||||
a = PackageRelationEntry(i)
|
if a.operator is not None:
|
||||||
if a.operator is not None:
|
a.operator = -a.operator
|
||||||
a.operator = -a.operator
|
image_fields['Breaks'].append(PackageRelationGroup([a]))
|
||||||
image_fields['Breaks'].append(PackageRelationGroup([a]))
|
for item in l:
|
||||||
for item in l:
|
item.arches = [arch]
|
||||||
item.arches = [arch]
|
image_fields['Depends'].append(l)
|
||||||
image_fields['Depends'].append(l)
|
|
||||||
|
|
||||||
bootloaders = config_entry_image.get('bootloaders')
|
bootloaders = config_entry_image.get('bootloaders')
|
||||||
if bootloaders:
|
if bootloaders:
|
||||||
|
|
|
@ -13,6 +13,7 @@ linux (3.14.8-1) UNRELEASED; urgency=medium
|
||||||
- O_TMPFILE support
|
- O_TMPFILE support
|
||||||
- bugfix, handling an error in opening a FIFO
|
- bugfix, handling an error in opening a FIFO
|
||||||
- propagate aufs file references to new vmas created by remap_file_pages()
|
- propagate aufs file references to new vmas created by remap_file_pages()
|
||||||
|
* linux-image: Make initramfs support unconditional
|
||||||
|
|
||||||
[ Aurelien Jarno ]
|
[ Aurelien Jarno ]
|
||||||
* [arm64] Enable COMPAT to support 32-bit binaries.
|
* [arm64] Enable COMPAT to support 32-bit binaries.
|
||||||
|
|
|
@ -13,7 +13,6 @@ kernel-arch: mips
|
||||||
image-file: vmlinux
|
image-file: vmlinux
|
||||||
|
|
||||||
[image]
|
[image]
|
||||||
initramfs: true
|
|
||||||
install-stem: vmlinux
|
install-stem: vmlinux
|
||||||
|
|
||||||
[r4k-ip22_description]
|
[r4k-ip22_description]
|
||||||
|
|
|
@ -12,7 +12,6 @@ kernel-arch: mips
|
||||||
image-file: vmlinux
|
image-file: vmlinux
|
||||||
|
|
||||||
[image]
|
[image]
|
||||||
initramfs: true
|
|
||||||
install-stem: vmlinux
|
install-stem: vmlinux
|
||||||
|
|
||||||
[sb1-bcm91250a_description]
|
[sb1-bcm91250a_description]
|
||||||
|
|
|
@ -16,7 +16,6 @@ my $link_in_boot = "";
|
||||||
my $no_symlink = "";
|
my $no_symlink = "";
|
||||||
my $do_symlink = "Yes"; # target machine defined
|
my $do_symlink = "Yes"; # target machine defined
|
||||||
my $kimage = "@image-stem@";
|
my $kimage = "@image-stem@";
|
||||||
my $initrd = "@initramfs@";
|
|
||||||
my $mkimage = ""; # command to generate the initrd image
|
my $mkimage = ""; # command to generate the initrd image
|
||||||
my $use_hard_links = ''; # hardlinks do not work across fs boundaries
|
my $use_hard_links = ''; # hardlinks do not work across fs boundaries
|
||||||
my $postinst_hook = ''; #Normally we do not
|
my $postinst_hook = ''; #Normally we do not
|
||||||
|
@ -532,9 +531,7 @@ if (-d "$modules_base/$version") {
|
||||||
# Only change the symlinks if we are not being upgraded
|
# Only change the symlinks if we are not being upgraded
|
||||||
if (! defined $ARGV[1] || ! $ARGV[1] || $ARGV[1] =~ m/<unknown>/o) {
|
if (! defined $ARGV[1] || ! $ARGV[1] || $ARGV[1] =~ m/<unknown>/o) {
|
||||||
image_magic($kimage, $image_dest);
|
image_magic($kimage, $image_dest);
|
||||||
if ($initrd) {
|
image_magic("initrd.img", $image_dest);
|
||||||
image_magic("initrd.img", $image_dest);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
lstat($kimage);
|
lstat($kimage);
|
||||||
|
@ -542,12 +539,10 @@ else {
|
||||||
handle_missing_link($kimage, $image_dest, "$kimage-$version",
|
handle_missing_link($kimage, $image_dest, "$kimage-$version",
|
||||||
$realimageloc);
|
$realimageloc);
|
||||||
}
|
}
|
||||||
if ($initrd) {
|
lstat("initrd.img");
|
||||||
lstat("initrd.img");
|
if (! -e _) {
|
||||||
if (! -e _) {
|
handle_missing_link("initrd.img", $image_dest, "initrd.img-$version",
|
||||||
handle_missing_link("initrd.img", $image_dest, "initrd.img-$version",
|
$realimageloc);
|
||||||
$realimageloc);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ $|=1;
|
||||||
my $version = "@abiname@@localversion@";
|
my $version = "@abiname@@localversion@";
|
||||||
my $link_in_boot = "";
|
my $link_in_boot = "";
|
||||||
my $kimage = "@image-stem@";
|
my $kimage = "@image-stem@";
|
||||||
my $initrd = "@initramfs@";
|
|
||||||
my $postrm_hook = ''; #Normally we do not
|
my $postrm_hook = ''; #Normally we do not
|
||||||
my $package_name = "linux-image-$version";
|
my $package_name = "linux-image-$version";
|
||||||
|
|
||||||
|
@ -230,8 +229,8 @@ if ($ARGV[0] !~ /upgrade/) {
|
||||||
# check and remove damaged and dangling symlinks
|
# check and remove damaged and dangling symlinks
|
||||||
image_magic($kimage, $image_dest);
|
image_magic($kimage, $image_dest);
|
||||||
image_magic($kimage . ".old", $image_dest);
|
image_magic($kimage . ".old", $image_dest);
|
||||||
image_magic("initrd.img", $image_dest) if $initrd;
|
image_magic("initrd.img", $image_dest);
|
||||||
image_magic("initrd.img.old", $image_dest) if $initrd;
|
image_magic("initrd.img.old", $image_dest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue