Skip to content

Commit

Permalink
Merge pull request #104 from mariux64/pdist-keep-running-kernel
Browse files Browse the repository at this point in the history
pdist: Do not delete running kernel
  • Loading branch information
pmenzel authored Oct 8, 2019
2 parents ce889c4 + baec330 commit c4e3828
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pdist/pdist
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,20 @@ sub prog_update

local($, , $\)=(' ',"\n");

if ($function == F_UPDATE) {
chomp (my $linux_version=`uname -r`); # '5.4.0-rc2.mx64.295'
if ($linux_version) {
my ($build) = $linux_version =~ /\.(\d+)$/;
push @EXCEPTS,
"/boot/mariux.$build",
"/boot/bzImage-$linux_version",
"/lib/modules/$linux_version",
"/boot/config-$linux_version",
"/boot/System.map-$linux_version",
"/usr/share/nvidia/kernel/$linux_version",
}
}

if ($tarfile && $tarfile ne '-') {
-d $TMPDIR or mkdir $TMPDIR or die $TMPDIR.": $!\n";
if (-d $TMPUPDDIR) {
Expand Down

0 comments on commit c4e3828

Please sign in to comment.