zram doesn't start on non-english locale

Bug #1443699 reported by Nazar Mokrynskyi
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
zram-config (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Line:
> totalmem=`free | grep -e "^Mem:" | sed -e 's/^Mem: *//' -e 's/ *.*//'`

of /usr/bin/init-zram-swapping is wrong, because it doesn't account system locale, in my case Ukrainian, free gives such output:

> nazar-pc@nazar-pc ~> free
> загалом використ. вільна спільна буфери кешовано
> Пам.: 8093264 7917060 176204 1934296 76 3536344
> -/+ буфери/кеш: 4380640 3712624
> Своп.: 6937056 0 6937056

As you can see, instead of "Mem" I have "Пам." here, and correcting script to that makes zram working, so there is need for better regexp

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zram-config (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.