aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorRoman Kyrylych <roman@archlinux.org>2009-08-02 21:04:48 +0300
committerRoman Kyrylych <roman@archlinux.org>2009-08-02 21:04:48 +0300
commita24ad686cd629bee0dcf5cc6e5c1f4da65ca1159 (patch)
tree0a33f03d26835594497f02d2c1e92e3e54c216f7 /rc.sysinit
parentb05933da4de82fe515c1eee5e5a7690072b99c79 (diff)
downloadinitscripts-a24ad686cd629bee0dcf5cc6e5c1f4da65ca1159.tar.xz
Fixed warning about bootbits with encrypted swap and util-linux-ng 2.16
Afte update to util-linux-ng the following message is shown during boot: mkswap: /dev/mapper/swap: Warning: don't erase bootbits sectors on whole disk. Use -f to force. The change was introduced by this commit: http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commit;h=ff3bed806863d1c2075d0efda70b39ea6af9ecba From man mkswap: -f Force - go ahead even if the command is stupid. This allows the creation of a swap area larger than the file or partition it resides on. Without this option mkswap will refuse to erase the first block on a device with a partition table or on whole disk (e.g. /dec/sda). This change adds -f to mkswap in rc.sysinit to eliminate the warning. Signed-off-by: Roman Kyrylych <roman@archlinux.org>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 160f70e..8ec6ec6 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -180,7 +180,7 @@ if [ -f /etc/crypttab -a -n "$(/bin/grep -v ^# /etc/crypttab | /bin/grep -v ^$)"
$CS -d /dev/urandom $copts create $cname $csrc >/dev/null
if [ $? -eq 0 ]; then
stat_append "creating swapspace.."
- /sbin/mkswap -L $cname /dev/mapper/$cname >/dev/null
+ /sbin/mkswap -f -L $cname /dev/mapper/$cname >/dev/null
fi
fi
elif [ "${cpass}" = "ASK" ]; then