]> git.ipfire.org Git - thirdparty/dracut.git/commit
mkinitrd-suse.sh: Fix prefix calculation 222/head
authorDaniel Molkentin <dmolkentin@suse.com>
Tue, 25 Apr 2017 13:25:20 +0000 (15:25 +0200)
committerDaniel Molkentin <dmolkentin@suse.com>
Tue, 25 Apr 2017 13:30:13 +0000 (15:30 +0200)
commit7cf2c21798b537a5553ecc23df5ce8cfda631e9c
tree17b74112985c60239354e31af3a6c7c28ca126c6
parent11947da13ff463184845777aac9a0b98c08d5dcc
mkinitrd-suse.sh: Fix prefix calculation

The previous algorithm was incorrect and would return
incorrect results e.g. for a /20 mask. Also gets rid
of an undocumented depencency on bc(1).

Reference: bsc#1035743
mkinitrd-suse.sh