IRC log of #maemo-ssu for Saturday, 2013-02-16

keriothe nokia repos are necessary00:00
keriothe community repos are basically an overlay on them00:00
keriokinda like linux mint and ubuntu00:00
dafoxI read they weren't working (yet)?00:00
kerioit's just that HAM won't consider them for upgrades00:04
dafoxok, I re-enabled them already :)00:04
dafoxkerio: could/would you be willing to test something for me? do you have either 'yappari' or 'cute-tube' installed?00:05
keriono00:05
dafoxok00:05
dafoxThe 'problem' is that in some lists (i.e. not all), the text will get garbled when I scroll upwards (scrolling down is fine). Those two apps in particular seem to be affected. But I'm unable to find anyone else who experiences this... so I'm wondering what is wrong with my phone. If it's those apps it should happen for everyone, I think...00:07
*** LauRoman has joined #maemo-ssu00:09
*** arcean_ has joined #maemo-ssu00:37
*** arcean has quit IRC00:41
*** NIN101 has quit IRC00:45
*** Vlad_on_the_road has quit IRC00:55
*** xes has quit IRC00:59
*** LauRoman has quit IRC01:32
*** NIN101 has joined #maemo-ssu01:34
*** NIN101 has quit IRC01:40
DocScrutinizer05overclocked? undervolted?01:59
dafoxat the risk of not getting any more help: yes. However this happens very predictably (always those apps), and has much more characteristics of a drawing bug (i.e. not just random corruption)02:23
*** LaoLang_cool has joined #maemo-ssu02:44
*** LaoLang_cool has quit IRC02:58
*** dafox has quit IRC03:03
*** wumpwoast has joined #maemo-ssu03:31
*** Martix has quit IRC03:37
*** M4rtinK has quit IRC03:50
*** kolp has quit IRC04:00
Palimerlin1991: on tmo there are more people which want ext4 on MyDocs and also on home04:06
PaliI looked into script where are hardcoded vfat and ext3 strings04:06
Paliand scripts working: MyDocs is first partition which has 'c' id in MBR table on /dev/mmcblk004:07
Palihome is partition on /dev/mmcblk0 which has in MBR table '83' id04:08
Pali(first partition)04:08
Paliso both /home and MyDocs are not hardcoded to partition number but to id in MBR table04:09
Paliproblem is that there is convention (and parition programs using it) that 'c' id means FAT32 partition, 83 is some linux partition (ext*)04:11
Palikerio, freemangodon, merlin1991, DocScrutinizer05: if you have idea how to fix that, ping me04:11
Palisolution is not easy, because more people swapped MyDocs and home partition numbers04:12
Paliwe need to determinate which partition is mydocs, home and swap and then generate proper /etc/fstab with correct filesystem type04:13
DocScrutinizer05Pali: well, the solution is rather simple, though radical. Get proper persistent fstab04:18
DocScrutinizer05tbh I still don't get the rationale yet of generating a fake fstab on each boot04:19
PaliDocScrutinizer05, ok, how to generate fstab?04:21
Palisee above problems ^^^04:22
Paliwe can break devices when we switch home & mydocs & swap04:22
*** arcean_ has quit IRC04:22
Palideterminating which partition is swap could be easy04:23
Palibut how to determinate which partition is /home and which MyDocs?04:23
DocScrutinizer05well, somebody must have changed that, or it will be as we're used to. The one who changes fs type also has to ccreate the fstap for that04:24
DocScrutinizer05fstab*04:24
Paliyes, but now maemo scripts generating it04:25
Paliso I really do not know if some script is not going to remove fstab04:25
DocScrutinizer05yes, and if we want to fix it, we need to change that to using a static fstab04:25
Palimaybe another question: do we need fstab?04:26
DocScrutinizer05sure04:26
Palimounting mmc card & usb disks in host mode are mounted automatically by ke-recv04:26
Paliwhich ignoring fstab04:26
Paliand calling directly mount device mount_point04:27
Palisame is for MyDocs04:27
DocScrutinizer05one more reason why no dynamic fstab is needed04:27
Paliin fstab is only home & MyDocs04:27
Paliand swap04:27
DocScrutinizer05I really don't understand why all this is the way it is04:28
Palichanging ke-recv is not simple04:28
Paliso I think that mount code in ke-recv is not going to be changed04:28
DocScrutinizer05but feasible04:28
Paliand there is problem that all maemo apps want sd card in /media/mmc104:29
Paliand usb disks in /media/usb/sd*04:29
Paliso fstab for SD card & usb disks is useless04:30
Paliand also when I create new partition on SD card I really do not want to edit fstab for mounting SD card04:30
Palilinuxes on desktop also doing autodetection of external usb disks and SD cards04:31
*** nox- has quit IRC04:31
*** FlameReaper has joined #maemo-ssu04:37
DocScrutinizer05Pali: you're jumbing like mad between /home and /mydocs and ke-recv and uSD cards and scripts and whatnot04:38
DocScrutinizer05I never suggested to mount uSD via fstab04:38
Paliok, so what do you want to see in fstab04:39
DocScrutinizer05I want to see my pillow now04:39
Paliand how to generate first version of fstab?04:39
DocScrutinizer05well, maybe user generates it with mcedit?04:40
*** Pali has quit IRC04:47
DocScrutinizer05either user changed his partitons then he needs to change his fstab. Or user didn't and we use standard fstab04:51
DocScrutinizer05I don't see the problem04:52
*** amiconn_ has joined #maemo-ssu05:54
*** amiconn has quit IRC05:54
*** amiconn_ is now known as amiconn05:55
*** FlameReaper has quit IRC05:58
*** DocScrutinizer05 has quit IRC06:02
*** DocScrutinizer05 has joined #maemo-ssu06:02
*** FlameReaper has joined #maemo-ssu06:23
*** tadzik has joined #maemo-ssu08:39
*** Mihanizat0r has joined #maemo-ssu09:28
kerioi already have a check against the generation of fstab in my rcS-late09:44
kerioi made it so that fstab is recreated iff genfstab.awk exists09:45
keriothen the only issue becomes mount_home, that checks for "/home ext3 rw" in /proc/mounts09:46
keriobut that can be regexp'd09:46
keriowhat *can't* be regexp'd is the fsck.ext309:46
keriohow does the automagical fsck work, i wonder09:47
*** LauRoman has joined #maemo-ssu09:49
keriohm, at worst we could run fsck.`grep /home /etc/fstab | cut | awk '{print $2}'`09:52
kerioanyway, if we eventually ship a kernel with ext4, we can just change all of those to "ext4", it's backwards-compatible09:59
*** Mihanizat0r has quit IRC10:22
*** Vlad_on_the_road has joined #maemo-ssu10:29
*** NIN101 has joined #maemo-ssu10:53
*** Pali has joined #maemo-ssu11:08
kerioohai Pali11:08
kerioyou missed my monologue regarding fstab :)11:09
Palihi11:09
Palikerio, we can use blkid or hal which tell us filesystem on mmc block device11:10
Paliso hardcocded ext3/vfat can be fixed with blkid11:10
Palieverywhere11:11
kerioPali: that doesn't involve having a real fstab11:11
Palibut you can see that genfstab.awk reading MBR parittion id11:11
PaliI think that good solution would be: add new config file with GENFSTAB= option11:12
Paliwhich user can change11:12
Palikerio, but first we should solve how to determinate which partition is /home and which MyDocs11:13
keriowhat do you mean "determine"?11:13
Paliwhich partition should be mounted to /home?11:14
Paliand which to MyDocs?11:14
kerio/dev/mmcblk0p211:14
kerio/dev/mmcblk0p111:14
Paliwhy?11:14
kerioactually no, even better11:14
keriothe partitions specified in /etc/fstab11:14
Palisome people swapped p2 and p111:14
keriowell those people should fix their fstab11:14
Paliand because genfstab.awk reading MBR id, it generate correct fstab11:14
keriogood, so the fstab is already correct11:15
*** FlameReaper has quit IRC11:16
Palikerio, there is another problem: yesterday I booted 3.8 kernel on maemo5, and udev did not changed mmc0 and mmc1, so I had mmc1 for eMMC11:18
Paliwithout fixing rcS-late I was not able to boot 3.8 kernel11:18
kerioPali: does our "mount" understand UUIDs?11:18
Paliso I think that static fstab is not good solution for booting more kernels11:18
kerioit is11:18
keriomount by UUID11:19
PaliUUID sounds like good idea, but11:19
kerioand if you're going to boot 3.8 then you're outside of the realm of the normal user11:19
Palireformating MyDocs on windows will change fat uuid11:19
Palikerio, I want easy solution for booting upstream kernel11:19
Paliand not changing tons of config before reboot11:19
kerioand i want a pony11:20
keriofremantle has unspoken assumptions regarding the partition layout of /dev/mmcblk*11:20
Paliit is not normal to change configs if you are going to boot another kernel11:20
keriobut it's normal to change configs if you're going to swap hardware around11:20
keriowhich is what's effectively happening11:21
Palikerio, for some reason ke-recv correctly detected which mmc device is SD card11:21
Paliand mounted it correctly11:21
Paliit mounted /dev/mmcblk0p1 to /media/mmc111:21
Paliso seems that SD card is not hardcoded for /dev/mmcblk1*11:22
kerioyeah, the sd card can be automounted by ke-recv11:23
kerio(i'd still like a bit more documentation on how to trigger that manually, but whatever)11:24
kerio/home is mounted during rcS-late11:24
Paliyes11:24
kerioand the UUID of /home doesn't change11:25
keriowell11:25
keriohrmpf11:25
Palikerio, can we check if mc block device has root folder "user" before mouting?11:25
Pali*mmc11:25
Palibecause in /home should be "user"11:26
keriowe could mount and unmount if we're wrong, but that's bullshit11:26
kerio"mkdir user"11:26
Palino, I mean that device which has "user" is /home11:26
kerioyep, that's bullshit11:26
kerioi could have multiple extfs partitions with a "user" directory11:27
Palinow first partition with id '83' is mounted to /home11:27
kerioin the correct device11:28
keriobecause of the HAL renaming11:28
Paliudev doing renaming11:28
kerioright, udev11:28
Paliand rcS-late has hardcoded mmc011:28
keriowell, make your 3.8 kernel's udev rename them too11:28
Palikerio, problem is that I do not know why that renaming udev rule not working11:29
PaliI tried to check out why11:29
Palibut I think that rule should work11:29
kerioPali: /dev/mmcblk0 being the eMMC and /dev/mmcblk1 being the uSD is an unwritten assumption in fremantle/n900 anyway11:29
Palikerio, yes, but this can be also easy fixed11:29
Paliin /sys there is item which tell us if mmc device is interal or external11:30
kerioi mean an assumption in every piece of (related to partitions) software11:30
Paliscript /bootmenu.sh doing it11:30
kerioPali: holy shit, our "mount" understands LABEL=11:31
PaliI'm for this: Add option for user to stop generating fstab, but also fix autogenerating to support any filesystem11:32
Palibtw is swapon reading swap partitions from /etc/fstab?11:33
kerioyeah, rcS-late just does a swapon -a11:33
kerioafter it's generated11:33
Paliif yes, this can solve also problem with adding more swaps11:33
kerioi have, around the block of code that generates fstab:11:34
kerio    if [ -e /usr/lib/genfstab.awk ]; then11:34
keriobut that can be changed to be something like if [ ! -e /etc/default/nogenfstab ]; then11:34
kerioor something like that11:35
Palikerio, it will be very bad if we hardcode that first partition will be mounted to MyDocs (any supported filesystem by kernel) and second will be /home?11:36
kerioPali: linux doesn't care much about the partition type11:37
Palibecause I do not see any good solution how to generate fstab with MyDocs and home with any supported filesyetem11:37
kerioMyDocs and mmc things are still handled by ke-recv11:37
kerioMyDocs is the first partition with id 0c in the internal memory11:37
kerioregardless of the actual file system11:37
kerio(kinda ugly, but meh)11:38
Palikerio, yes this is reason why I do not like to see using MBR ids11:38
Paliok, so I will try to change all maemo scripts to, respect some nongenfstab settings and generation will always use p1 for MyDocs and p2 for /home (with autodetection of filesystem)11:39
kerioPali: what's wrong with having a fixed partition order, anyway?11:40
Paliusers which already using switched partitions11:40
kerioPali: they won't need to move data around11:40
Palibecase maemo system has support for that11:40
kerioyou can just change the partition order11:40
Palikerio, yes it is possible :-)11:41
keriofdisk will yell at you, but he'll do it11:41
Palibut I think that (s)fdisk has no command for reordering partition11:41
kerioPali: whatever, change the ordering in some way11:41
keriodelete the partitions and recreate them in the opposite order with the exact same start/end11:42
kerio(but swapped)11:42
Paliyes11:42
Palialso u-boot has hardcoded first emmc partittion for bootmenu11:42
keriowe should facilitate users who wish to customize their system like that, but we and they can't hope that everything will happen automagically11:42
PaliI will try to remove hardcoded fat32 option11:42
kerioPali: so you're going to outright ignore the mbr partition type?11:43
kerioPali: also, how does the autodetect work?11:43
PaliI do not see better solution...11:43
kerioext3 can be safely mounted as ext4 and then back11:43
keriobut ext4 with extents won't be mountable as ext311:43
Palikerio, autodetect will read some bytes from partittion and detect type11:43
kerioalthough the ext* status in the kernel is always weird like that11:44
kerioand it's the same code anyway, right?11:44
Palirun sudo blkid and will show all info11:44
Paliit detecting correctly eveyrting on my device11:44
keriomine too11:44
*** M4rtinK has joined #maemo-ssu11:44
kerioPali: how do i unmount/mount via ke-recv?11:45
keriolike, MyDocs11:45
keriodoes ke-recv read /etc/default/mount-opts?11:45
kerioah crap, how should ke-recv handle mount-opts then?11:45
keriofor its own partitions11:45
Palike-recv calling osso-mmc-mount.sh11:45
Paliit ignoring mount-opts11:46
Palialso see script mmc-mount11:46
Palithere are hardcoded options for vfat11:46
kerioso everything ke-recv does is done through that script?11:47
kerioregarding the mounts11:47
Paliit should be done by osso-mmc-mount.sh11:47
Palithere is implemented blacklist11:47
kerioalright11:47
Paliwhich seems to work11:47
keriowhat about the export?11:47
keriowho specifies what to export? it's not written in the script11:48
Paliexport?11:48
keriomass storage mode11:48
Palike-recv11:48
keriobut where in the source? i wasn't able to find that11:48
Palisd card is in /media/mmc<num>p<num>11:48
keriothat should be made configurable too,11:48
Paliusb disk is in /media/usb/11:48
Palikerio, no11:48
kerioyes11:48
kerioi have my swap on the uSD11:48
kerioand the whole usd is exported11:48
kerioand that's bullshit11:49
PaliI must hardcoded that, becuase gkt, hildon, and closed file manager depends on these locations11:49
kerionot the locations11:49
keriowhat to export via usb mass storage mode11:49
Paliah, you mean that11:49
kerioalso, file manager will happily list every directory in /media/11:49
kerioi do my nfs mounts there, and they're shown :311:49
Palike-recv has check: if this is internal mmc device export only MyDocs else export full partittion11:50
Palimaemo has configured only 2 luns in gadget driver11:50
Paliso you can export only two devices11:50
keriowhile we're in the midst of having these customization helpings, we should try to make that configurable too11:51
kerioPali: at least a blacklist for exporting11:51
Palikerio, if swap is using I think that it will not be possible to export SD card11:51
kerioPali: i never tried to write on it, but the swap is exported11:51
kerioi don't know if it's locked down and you can't write on it from the usb host11:52
keriobut it's still terrifying11:52
Paliswap is exported when using?11:52
keriothe whole SD is exported11:52
Paliyes11:52
kerioi see the swap partition in the partition list in Disk Utility11:52
Palibut it should be umounted11:52
keriowell, it's not :)11:52
keriothankfully11:53
Palikerio, if you have swap partition on sd card, then swap is also exported11:53
Palibecause full mmc block device is exported11:53
kerioyeah, but we could change that11:53
kerioand by we i obviously mean you :P11:53
Paliand how?11:53
kerioPali: how about a setting to "prefer single partition" in the export of the uSD11:53
kerioif there's that setting, and there's a partition table, you export the first partition11:54
Paliok11:54
kerioyou need to check if there's a partition table, because uSDs can also be superfloppys with no partition table and the filesystem on the whole device11:54
kerioPali: make it threefold: export whole device (default), export single partition, no export11:55
keriowith no export, you only export mydocs11:55
kerioPali: also, my sd is mounted in /media/mmc1, not /media/mmc1p111:58
Palikerio, yes, because one partition must be mounted to /media/mmc112:00
kerioi see12:00
Palibecause camera (or another application, maybe modest) had hardcoded that path12:00
Paliand ke-recv mounting first fat partition for /media/mmc112:00
Paliif there is no fat, then first non fat is mounted12:00
kerioalright12:01
kerioPali: btw, i successfully booted with no hardcoded devices in /etc/fstab :D12:02
kerioPali: does ke-recv depend on the reordering of devices?12:06
PaliI do not know12:06
Paliwhat is hardcoded in ke-recv12:06
kerioanyway, i think that the invariant of the first partition must be somewhat preserved12:07
kerioso if you want to reorder the partitions, you'll still have to keep the logical order preserved12:07
keriootherwise there's no way to support multiple filesystems12:08
kerioPali: LABEL= is great12:11
kerioPali: there's another issue in rcS-late, regarding the mount of /home12:12
keriodoes fsck also check the blkid12:18
kerio?12:18
*** kolp has joined #maemo-ssu12:18
Palikerio, I do not know how fsck working12:20
Palibut I remember that I damaged /home when I called fsck on it (without suffix)12:21
kerioD:12:21
keriohow do we handle mount_home in rcS-late then?12:21
Paliit thought that /home was ext2 or ext4 and it not called fsck.ext312:21
kerioPali: well, ext4 tools are backwards-compatible with ext312:22
Palikerio, call fsck.<type>12:22
Paliif application fsck.<type> not exists then ignore it12:22
kerioand this brings me to my next point: when CSSU eventually ships a kernel with ext4 support, we could just change all the mounts from ext3 to ext412:22
Palikerio, look: https://wiki.maemo.org/CSSU_kernel_assess12:23
Palihelp with that page12:23
keriowhere are the config options?12:24
*** xes has joined #maemo-ssu12:25
kerioPali: anyway, for your 3.8 kernel woes, use LABELs or UUIDs12:29
kerio:)12:29
kerioDocScrutinizer05: do you still have a vanilla n900? i want to know if the home partition has some label, by default12:30
Palikerio, kernel config diff is here: https://garage.maemo.org/plugins/ggit/browse.php/?p=kernel-power;a=blob;f=kernel-power-2.6.28/debian/patches/rx51_defconfig.diff12:30
*** xes has quit IRC12:31
*** xes has joined #maemo-ssu12:35
*** xes has joined #maemo-ssu12:35
kerioxes: your IP is shown to the world before the hostmask cloak is applied12:59
*** LauRoman has quit IRC13:23
*** xes has quit IRC13:32
*** arcean has joined #maemo-ssu14:09
*** MohammadAG has quit IRC14:29
*** M13 has joined #maemo-ssu14:47
*** xes has joined #maemo-ssu14:51
*** xes has joined #maemo-ssu14:51
kerioPali: do you have a rescueos image for linux 3.8?15:17
xes /set irc_join_delay 815:39
kerioxes: that's not the right way >:c15:49
xeshi kerio! ...this ..wtf!15:49
keriothe right way is to use SASL15:49
Palikerio, yes15:59
*** xes has left #maemo-ssu16:00
*** xes has joined #maemo-ssu16:05
*** xes has quit IRC16:09
*** xes has joined #maemo-ssu16:16
keriok, your ip didn't show16:17
xeskerio: thanks ;)16:17
merlin1991now just ctcp something fun and you got his ip again :D16:18
*** merlin1991 has quit IRC16:19
*** merlin1991 has joined #maemo-ssu16:20
xesnp... lot of honey here.. yw16:21
Palikerio, can you check if this command will print all swap devices? $ blkid -c /dev/null -o device -t TYPE=swap16:54
kerioPali: yep16:55
Paliok, swap problem fixed :-)16:55
kerio:D16:55
kerio...waaaaaaaaaait16:56
kerioyou mean when generating fstab, right?16:56
Paliyes16:57
kerioalright16:57
keriohm, i thought that it already scanned for swap partitions16:57
keriousing the mbr type16:57
Paliyes, it using mbr type16:58
Palibut I want to remove this mbr...16:58
Palikerio, also I'm going to fix booting maemo5 from eMMC/SD card16:58
*** arcean_ has joined #maemo-ssu16:59
Pali= do not mount /home if root is not ubifs16:59
kerioinstead of using your time doing that, why not look for a way to do an early mount of /usr?17:01
kerioor maybe checking out my patch to u-boot-tools >:c17:01
*** arcean has quit IRC17:02
Paliudev does not support /usr on different partition as /17:05
Palisame problem is on desktops17:05
Paliso this does not make sense17:05
kerio...wat17:05
Paliif you really need it, write bootmenu script17:05
Paliand boot your alternative system from /bootmenu.sh17:05
kerioPali: btw, why is MyDocs in fstab?17:08
PaliI do not know17:08
Palimaybe because mount /home/user/MyDocs ?17:08
Palito work17:08
kerioi thought ke-recv did that17:08
*** Milhouse has joined #maemo-ssu17:14
*** WizardNumberNext has joined #maemo-ssu17:19
*** FlameReaper has joined #maemo-ssu17:20
*** Martix has joined #maemo-ssu17:22
kerioPali: will you also change mount_home to check for the appropriate file system and fsck with the appropriate fsck?17:29
Paliyes, doing it too17:29
kerio^_^17:29
*** dhbiker has joined #maemo-ssu17:36
*** dhbiker has quit IRC17:50
*** dhbiker has joined #maemo-ssu17:51
*** NIN101 has quit IRC17:53
*** NIN101 has joined #maemo-ssu18:02
*** _rd has joined #maemo-ssu18:35
*** lexicek has joined #maemo-ssu18:36
*** _rd has quit IRC18:57
Palikerio, in maemo we have script fremantle-format-internal-memory-card.sh18:58
*** _rd has joined #maemo-ssu18:58
Paliwhich doing: mkswap ${1}p1; mkfs.ext3 ${1}p2; mkdosfs -F 32 -R 38 ${1}p318:58
kerio...whaaaaaaaaat18:58
keriohm, why the reserved sectors, i wonder18:59
Palino idea18:59
Paliand in this script is also:19:00
Palisfdisk -D -uM $1 << EOF19:00
Pali,768,S19:00
Pali,2048,L19:00
Pali,,b19:00
PaliEOF19:00
PalieMMC and SD cards are big octopus in maemo...19:01
keriowell, does anything call it?19:01
kerioanswer: no, because you can't lose /home/opt19:01
Palimaybe that eMMC flasher19:02
PaliI have maemo rootfs in nandsim on desktop19:03
Paligoing grep19:03
Paliok, nothing it calling19:03
Palithat string is only in var/lib/dpkg/info/ke-recv.list and var/lib/dpkg/info/ke-recv.md5sums19:03
kerioPali: maybe the path is built :P19:04
Palikerio, swap is by default on p3?19:05
kerioyep19:05
Palimydocs on p119:05
Paliand /home on p2?19:05
kerioyeah19:05
Paliok19:05
kerioyou know, i think i know why that script was made like it is19:05
kerioit's so it makes precisely 768mb and 2gb for swap and home19:05
kerioand then the rest of the 29ish gbs are for mydocs19:05
keriobut it's definetely from the preopt phase19:06
*** dhbiker has quit IRC19:10
*** dafox has joined #maemo-ssu19:12
*** xes has quit IRC19:23
Palikerio, now I found that ke-recv has code for enabling/disabling swap partitions on mmc devices19:35
Palibut nokia decided to disable that code for PR1.2 (or 1.1)19:36
kerioyeah, i'm not sure it's worth using19:36
keriowhat do you mean by disabled? commented out/ifdeffed out?19:36
kerioor just not used?19:36
Pali#if 019:36
keriomeh19:37
kerioi'm fairly sure that automatically changing swap partitions is a recipe for disaster19:37
Palivoid function() { \n #if 0 \n ..... \n #endif \n }19:37
Paliyes19:37
Palikerio, are you sure that maemo system export via usb live swap partition?19:39
ShadowJKthe automatic swap thing is probably remnant from Diablo19:39
kerioPali: yep, /dev/mmcblk1 is exported without any thought19:40
kerioand /dev/mmcblk1p2 is a swap partition19:40
kerio*the* swap partition19:40
Palikerio, ok at least I will add check and disable exporting whole device via usb19:41
kerioPali: which check?19:41
Paliif there is active swap partittion on sd card19:41
keriothat's silly19:41
kerioand awfully specific19:41
keriomake it configurable :(19:41
Paliyou should not export live block device via usb19:41
keriohm, good point19:42
keriocheck if /dev/mmcblk1 is anywhere in /proc/mounts or /proc/swaps19:42
kerioor just export the first partition where available19:42
kerioi'm fairly sure that the whole point of exporting the whole sd is to deal with superfloppies19:43
keriobut if there's a partition table...19:43
kerioidk19:43
kerioPali: is there code in ke-recv to disable a swap partition?19:44
Paliyes19:45
Palibut I do not know if working19:45
Paliit is commented19:45
Palikerio, I have more partitions on sd card (ext4 also vfat)19:46
Paliit make sense to export both19:46
keriohm19:46
Palibut I will add some config option later19:46
kerioisn't it easier to add the config options instead of the check?19:46
Palino :-)19:46
kerioPali: also, check if the activated swap partition is writable19:46
keriofrom the host19:47
keriofg19:47
keriosorry, wrong window19:47
*** povbot has joined #maemo-ssu19:57
*** ChanServ sets mode: +v povbot19:57
Palikerio, I have first version of rcS-late20:02
Palido you want to check it?20:02
keriosure20:03
Palikerio, here is code: http://pastebin.com/36TGSTL6 and http://pastebin.com/GEczDFw220:05
kerioPali: what the fuck, you don't mount ubifs with commit=120:06
Paliubifs is mounted by kernel20:06
Palisee /proc/cmdline20:07
kerioPali: aaaaand fsck fails :)20:08
kerioalso, -p is only for e2fsck really20:09
kerioPali: my "HOME_DEV" is "LABEL=N900_optfs"20:09
PaliI did not tested that script yet20:09
Palikerio: on which line?20:10
kerioline 15 of rcS-late20:10
kerioalso, isn't there a shorter way of specifying [^\ ]* in regexps?20:11
keriolike \w or something20:11
PaliI do not know what working in busybox's sed :D20:12
kerioyeah, \w is all alphanumericals20:12
keriogrep " /home " /etc/fstab | cut -f2 -d" "20:13
kerioer, not f2, f120:13
kerioand you can just grep for " /home $HOME_TYPE rw" at that point20:14
kerioi think that rw and ro are always at the beginning of the mount options20:14
Palikerio, " /home " will not work, because you can use tabs instead spaces20:14
kerioat least, that's what the nokia rcS-late was expecting20:14
kerioPali: hmm, good point20:14
Palikerio, show me your fstab20:15
Paliand also output of sed -n 's/^\([^\ ]*\)\s\s*\/home\s\s*.*$/\1/p' /etc/fstab | head -120:15
*** _rd has quit IRC20:16
kerioare you sure you want to see my fstab? :D20:17
keriohttp://pastebin.mozilla.org/214559520:17
Paliah, LABEL=...20:18
kerioPali: i'm not entirely sure that fscking at every boot is good, anyway20:19
kerioi mean, unattended fscks are bad anyway20:19
Palikerio, see fsck.ext3 -p20:19
Palikerio, ext devices should be fscked20:19
keriohm20:20
keriowhy? :(20:20
*** FlameReaper has quit IRC20:20
*** M13 is now known as Guest8509720:20
kerioPali: also, -a is also valid for fsck.vfat20:20
kerioand most fscks20:20
Paliif device is clean and counter is ok fsck.ext will skip full check20:21
kerioPali: hm, why "0 2" and not "0 0"?20:22
Pali0 - does not check device, 1 - check rootfs device as first, 2 - check non roofs device20:23
Paliman fstab20:23
kerioyeah but nothing parses fstab like that in maemo20:23
kerioactually, who's responsible for parsing fstab and mounting, in normal systems20:24
kerioinit?20:24
Palisystemd :D20:24
keriooh, it's mountall20:25
keriowhich isn't used in fremantle20:25
Palion ubuntu it doing mountall20:25
Palion other systems maybe initscript which calling mount -a20:25
Paliand fsck20:25
Paliglobal fsck parsing fstab too20:25
kerioPali: instead of figuring out device and type, use fsck20:26
keriothe generic one20:26
PaliI used it20:26
Palionce and it damaged my /home20:26
kerioyou used it once20:26
Paliit not detecing ext3/ext4 correctly20:27
kerioPali: that's impossible20:27
kerioit's **the same binary**20:27
Paliif you call fsck.ext4 and fsck.ext3 it doing different...20:28
Palie2fck checking argv020:28
kerio...woah i really hope they're hardlinked20:30
kerio/sbin/e2fsck, /sbin/fsck.ext3 and /sbin/fsck.ext4 have the same md5sum20:30
keriohow do i check if they're hardlinked to the same file?20:30
kerioPali: they're the same binary, it just has different argument parsing20:31
Palikerio, use stat20:31
Paliand check inode number20:31
kerioanyway, there's no way to specify the "version" of ext* to e2fsck20:32
kerioso i can only assume that fsck.ext* are effectively interchangeable20:32
kerioPali: as a bonus, `fsck` works with LABEL and UUID too20:33
kerioif the man page is to be believed20:33
*** _rd has joined #maemo-ssu20:41
kerioPali: will you also update mmc-mount so that it uses the options in /etc/default/mount-opts?20:45
Paliyes20:45
PaliI have it too20:45
kerioanyway, fsck LABEL=foo works fine20:45
Palikerio: http://pastebin.com/eZRvCsWG20:48
kerioneat :D20:48
kerioPali: srsly though, why is mydocs in fstab20:56
Palikerio, because something is calling only mount /home/user/MyDocs20:59
kerioPali: could you grep for that in your rootfs copy?20:59
Palihm, seems that nothing in PR1.3 rootfs21:00
Palimaybe some extras-devel app...21:00
kerioPali: btw, you're forgetting to not call mount_home if /home is not on a separate partition in that version of rcS-late you pastebinned21:03
Paliyes, mount_home should not do anything if /home missing in etc/fstab21:05
kerioPali: mount_home should return error if there's no /home in /etc/fstab21:05
Palikerio, no21:05
keriomount_home should *not be called* if /home shouldn't be in /etc/fstab21:05
kerioyes21:05
keriobecause if root_is_ubifs then we want a /home21:06
keriowe *need* a /home21:06
Paliroot_is_ubifs is used only for generating fstab21:06
Paliif you do not want to rewrite fstab you should respect all lines21:06
Paliand if someting is not present in fstab then you should not report error and not reboot device21:07
keriohm21:07
keriothe thing is, there's really no facility to properly report catastrophical errors, wait for user acknowledgement, and halt21:08
Palikerio, if mount_home fails, dsme/upstart/... rebooting device21:09
kerioyeah21:09
keriowhich leaves the user with a weird "?" face21:09
kerioPali: where is user_fsck used? in mmc-mount?21:15
keriocan vfat do something similar to the quick preening?21:16
kerioPali: also, do we really want to run fsck -y *ever* in our system?21:17
Palikerio, I'd like to implement user_fsck in ke-recv/mmc-mount21:20
Paliand I do not know21:20
Palimaybe we should look at some linux desktop distribution what is doing with fat21:21
keriomost definetely not doing an unattended "fix all" run21:21
kerioin fact, make the "hail mary" /home fsck configurable too21:22
*** Guest85097 has quit IRC21:30
kerioDocScrutinizer05: remove the "hail mary" fsck -y that will probably do more bad than good in mount_home?21:50
DocScrutinizer05eh?21:51
keriopali is revolutioning the fstab thing, i'm helping a bit21:52
kerioin rcS-preinit, the part that mounts /home tries to mount, and if it fails to do so it runs a fsck -y on it21:53
kerioand i'm not sure if we actually want to ever risk running "fsck -y" on *anything*21:54
kerioPali's modifications will allow the user to configure whether or not to run a fsck -a (automatic but only "safe" options) on home before mounting21:55
keriowhich is much, much better21:55
kerioshould we also keep the code that runs the POTENTIALLY DESTRUCTIVE AND COULD DO A LOT MORE DAMAGE fsck?21:55
Palinow I found that kernel-power-settings inject rcS-late script and calling fsck.ext3 on /home21:56
Palithis will be deleted from kernel-power-settings too21:57
Pali~seen t-tan21:57
infobotPali: i haven't seen 't-tan'21:57
DocScrutinizer05kerio: this fsck is ok, what's fishy is the missing notification to user about that state, which might render device semi-dead for hours and user would reboot22:01
*** nox- has joined #maemo-ssu22:02
kerioDocScrutinizer05: a fsck -y can do a lot more harm than good22:11
kerioinstead of letting you mount read-only, and recover data, it can fuck the filesystem up22:11
keriohm, what's the decision process for something like this?22:12
kerioDocScrutinizer05: let's put it this way: if fsck -a couldn't preemptively fix it, i very much doubt that fsck -y can, and before trying, you really, really, really want a backup22:13
DocScrutinizer05pretty simple, if system can't boot there is no option22:13
DocScrutinizer05ack for backup22:13
DocScrutinizer05also ack for giving user a choice22:13
kerioDocScrutinizer05: "shit be fucked up, yo - you might want to do $foo, $bar and/or $baz to fix it. The system can't boot, push the power button to shut down"22:14
DocScrutinizer05and also ack for fsck -a rather than -y22:14
kerioDocScrutinizer05: no, the preening will happen *before* the mounting22:14
kerio(and takes very little to no time, on a clean journaled system)22:14
keriothus, it's not very useful to *redo* it22:14
*** lexicek has quit IRC22:17
DocScrutinizer05when /home can't get mounted in a way that forbids system to boot up, we want to do something about it. We also want to do something about /home being mounted r/o *before* we can't umount it any more22:21
kerioDocScrutinizer05: yeah but stopping and saying "nope" is a much better option than blindly going ahead with a fsck -y22:22
keriofor the user's data22:22
DocScrutinizer05so you could check if e.g. BM is installed, and if it is, boot up with /home r/o and display a suggestion to use BM to fix it22:22
DocScrutinizer05if however no such alternative exists, you as well can go try and fix it right away, since there's no other option for the joe average user22:24
keriosure there is!22:25
kerio#maemo!22:25
kerio:322:25
DocScrutinizer05or you set a flag file on NAND/root that tells "home-been-mounted-r/o" and if on next boot it's again running into this error, you go fsck22:25
keriobesides, checking /proc/mounts is probably the result of cargo computing22:30
kerioyou can check the return value22:31
kerioalthough to be fair i don't know if it has a different return value if "corrupted fs, mounted read-only" happens22:33
*** Martix has quit IRC22:37
*** Martix has joined #maemo-ssu22:38
kerioPali: hm, what does the "check" option do, when mounting ext*?22:38
Paliwhich check option?22:39
kerio"check" :)22:39
keriono, wait22:39
kerio...why are the only valid possibilities "none" and "nocheck"? :s22:39
kerionevermind :)22:41
*** Martix has quit IRC22:49
*** Martix has joined #maemo-ssu22:50
*** Martix has quit IRC22:51
*** Martix has joined #maemo-ssu22:52
*** _rd has quit IRC23:06
*** Martix has quit IRC23:06
*** Martix has joined #maemo-ssu23:09
*** Martix_ has joined #maemo-ssu23:12
*** Martix has quit IRC23:15
*** _rd has joined #maemo-ssu23:27
*** arcean__ has joined #maemo-ssu23:48
*** arcean_ has quit IRC23:50
*** LauRoman has joined #maemo-ssu23:50

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!