Commit f118399c authored by Chris Lamb's avatar Chris Lamb 💬

Ignore all initscripts provided by the initscripts binary package instead of...

Ignore all initscripts provided by the initscripts binary package instead of whitelisting issues individually or requiring overrides; they will always not be regular-style initscripts. (Closes: #933383)
parent a1a58f7d
......@@ -77,7 +77,7 @@ my $ACTION_R = qr/\w+/;
my $EXCLUDE_R = qr/if\s+\[\s+-x\s+\S*update-rc\.d/;
sub run {
my (undef, undef, $info) = @_;
my ($pkg, undef, $info) = @_;
my $initd_dir = $info->index_resolved_path('etc/init.d/');
my $postinst = $info->control_index('postinst');
my $preinst = $info->control_index('preinst');
......@@ -86,6 +86,9 @@ sub run {
my (%initd_postinst, %initd_postrm);
# These will never be regular initscripts. (see #918459 & #933383)
return if $pkg eq 'initscripts';
check_missing_script($info);
# read postinst control file
......
......@@ -87,7 +87,8 @@ sub get_init_service_name {
sub get_init_scripts {
my ($info) = @_;
my @scripts;
if (my $initd_path = $info->index_resolved_path('etc/init.d/')) {
if ($info->name ne 'initscripts'
and my $initd_path = $info->index_resolved_path('etc/init.d/')) {
for my $init_script ($initd_path->children) {
# sysv generator drops the .sh suffix
my $basename = get_init_service_name($init_script);
......
......@@ -4,9 +4,6 @@ skeleton
rc
rcS
# Provided by bin:initscripts 2.93-3. (#918459)
brightness
# Names provided/masked by systemd
# Generated from the systemd links
# sed -n -e 's|^.\+[[:space:]]\+/lib/systemd/system/\([^/]\+\)\.service$|\1|p' debian/systemd.links
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment