summaryrefslogtreecommitdiff
path: root/stage2/01-sys-tweaks/files
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2017-03-07 15:13:22 +0000
committerSerge Schneider <serge@raspberrypi.org>2017-03-07 15:14:03 +0000
commit718a4e8c21289f99ad542faf11bc2e4d769291cc (patch)
tree420384482de75ae14d186c592a4feac324898325 /stage2/01-sys-tweaks/files
parent8e74b4f15cee8e4b794d0c916cd34f22d5ccfcd9 (diff)
Switch to PARTUUID
Diffstat (limited to 'stage2/01-sys-tweaks/files')
-rw-r--r--stage2/01-sys-tweaks/files/resize2fs_once2
1 files changed, 1 insertions, 1 deletions
diff --git a/stage2/01-sys-tweaks/files/resize2fs_once b/stage2/01-sys-tweaks/files/resize2fs_once
index 7236921..38a4d47 100644
--- a/stage2/01-sys-tweaks/files/resize2fs_once
+++ b/stage2/01-sys-tweaks/files/resize2fs_once
@@ -12,7 +12,7 @@
case "$1" in
start)
log_daemon_msg "Starting resize2fs_once"
- ROOT_DEV=`grep -Eo 'root=[[:graph:]]+' /proc/cmdline | cut -d '=' -f 2-` &&
+ ROOT_DEV=$(findmnt / -o source -n) &&
resize2fs $ROOT_DEV &&
update-rc.d resize2fs_once remove &&
rm /etc/init.d/resize2fs_once &&