summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert "ar" Gerus <ar@bash.org.pl>2013-05-02 04:32:58 +0200
committerRobert "ar" Gerus <ar@bash.org.pl>2013-05-02 04:32:58 +0200
commit81e69c95e1c66a14987da4e14f727edab951a55b (patch)
treede5cfb216cbadfeeb64a4800ef1ba46f4aa336fb
parent4594b48848e5f808c5dff29878948d4fd05d30a1 (diff)
downloadtar-xz-loading-initramfs-81e69c95e1c66a14987da4e14f727edab951a55b.tar.gz
tar-xz-loading-initramfs-81e69c95e1c66a14987da4e14f727edab951a55b.tar.bz2
tar-xz-loading-initramfs-81e69c95e1c66a14987da4e14f727edab951a55b.zip
Get rid of the cut call and replace it with a shell substitution.
-rwxr-xr-xinitramfs/init2
1 files changed, 1 insertions, 1 deletions
diff --git a/initramfs/init b/initramfs/init
index 57ca7a2..6aa7523 100755
--- a/initramfs/init
+++ b/initramfs/init
@@ -121,7 +121,7 @@ for var in $(cat /proc/cmdline); do
url="${url/|*}"
(
if [[ ${url_type} = "uuid" ]]; then
- uuid="$(echo ${url} | /busybox cut -d / -f 1)"
+ uuid="${url%%/*}"
filepath="${url#*/}"
info "mounting $(findfs UUID="${uuid}") on /mnt"