kerio | the nokia repos are necessary | 00:00 |
---|---|---|
kerio | the community repos are basically an overlay on them | 00:00 |
kerio | kinda like linux mint and ubuntu | 00:00 |
dafox | I read they weren't working (yet)? | 00:00 |
kerio | it's just that HAM won't consider them for upgrades | 00:04 |
dafox | ok, I re-enabled them already :) | 00:04 |
dafox | kerio: could/would you be willing to test something for me? do you have either 'yappari' or 'cute-tube' installed? | 00:05 |
kerio | no | 00:05 |
dafox | ok | 00:05 |
dafox | The '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-ssu | 00:09 | |
*** arcean_ has joined #maemo-ssu | 00:37 | |
*** arcean has quit IRC | 00:41 | |
*** NIN101 has quit IRC | 00:45 | |
*** Vlad_on_the_road has quit IRC | 00:55 | |
*** xes has quit IRC | 00:59 | |
*** LauRoman has quit IRC | 01:32 | |
*** NIN101 has joined #maemo-ssu | 01:34 | |
*** NIN101 has quit IRC | 01:40 | |
DocScrutinizer05 | overclocked? undervolted? | 01:59 |
dafox | at 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-ssu | 02:44 | |
*** LaoLang_cool has quit IRC | 02:58 | |
*** dafox has quit IRC | 03:03 | |
*** wumpwoast has joined #maemo-ssu | 03:31 | |
*** Martix has quit IRC | 03:37 | |
*** M4rtinK has quit IRC | 03:50 | |
*** kolp has quit IRC | 04:00 | |
Pali | merlin1991: on tmo there are more people which want ext4 on MyDocs and also on home | 04:06 |
Pali | I looked into script where are hardcoded vfat and ext3 strings | 04:06 |
Pali | and scripts working: MyDocs is first partition which has 'c' id in MBR table on /dev/mmcblk0 | 04:07 |
Pali | home is partition on /dev/mmcblk0 which has in MBR table '83' id | 04:08 |
Pali | (first partition) | 04:08 |
Pali | so both /home and MyDocs are not hardcoded to partition number but to id in MBR table | 04:09 |
Pali | problem is that there is convention (and parition programs using it) that 'c' id means FAT32 partition, 83 is some linux partition (ext*) | 04:11 |
Pali | kerio, freemangodon, merlin1991, DocScrutinizer05: if you have idea how to fix that, ping me | 04:11 |
Pali | solution is not easy, because more people swapped MyDocs and home partition numbers | 04:12 |
Pali | we need to determinate which partition is mydocs, home and swap and then generate proper /etc/fstab with correct filesystem type | 04:13 |
DocScrutinizer05 | Pali: well, the solution is rather simple, though radical. Get proper persistent fstab | 04:18 |
DocScrutinizer05 | tbh I still don't get the rationale yet of generating a fake fstab on each boot | 04:19 |
Pali | DocScrutinizer05, ok, how to generate fstab? | 04:21 |
Pali | see above problems ^^^ | 04:22 |
Pali | we can break devices when we switch home & mydocs & swap | 04:22 |
*** arcean_ has quit IRC | 04:22 | |
Pali | determinating which partition is swap could be easy | 04:23 |
Pali | but how to determinate which partition is /home and which MyDocs? | 04:23 |
DocScrutinizer05 | well, 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 that | 04:24 |
DocScrutinizer05 | fstab* | 04:24 |
Pali | yes, but now maemo scripts generating it | 04:25 |
Pali | so I really do not know if some script is not going to remove fstab | 04:25 |
DocScrutinizer05 | yes, and if we want to fix it, we need to change that to using a static fstab | 04:25 |
Pali | maybe another question: do we need fstab? | 04:26 |
DocScrutinizer05 | sure | 04:26 |
Pali | mounting mmc card & usb disks in host mode are mounted automatically by ke-recv | 04:26 |
Pali | which ignoring fstab | 04:26 |
Pali | and calling directly mount device mount_point | 04:27 |
Pali | same is for MyDocs | 04:27 |
DocScrutinizer05 | one more reason why no dynamic fstab is needed | 04:27 |
Pali | in fstab is only home & MyDocs | 04:27 |
Pali | and swap | 04:27 |
DocScrutinizer05 | I really don't understand why all this is the way it is | 04:28 |
Pali | changing ke-recv is not simple | 04:28 |
Pali | so I think that mount code in ke-recv is not going to be changed | 04:28 |
DocScrutinizer05 | but feasible | 04:28 |
Pali | and there is problem that all maemo apps want sd card in /media/mmc1 | 04:29 |
Pali | and usb disks in /media/usb/sd* | 04:29 |
Pali | so fstab for SD card & usb disks is useless | 04:30 |
Pali | and also when I create new partition on SD card I really do not want to edit fstab for mounting SD card | 04:30 |
Pali | linuxes on desktop also doing autodetection of external usb disks and SD cards | 04:31 |
*** nox- has quit IRC | 04:31 | |
*** FlameReaper has joined #maemo-ssu | 04:37 | |
DocScrutinizer05 | Pali: you're jumbing like mad between /home and /mydocs and ke-recv and uSD cards and scripts and whatnot | 04:38 |
DocScrutinizer05 | I never suggested to mount uSD via fstab | 04:38 |
Pali | ok, so what do you want to see in fstab | 04:39 |
DocScrutinizer05 | I want to see my pillow now | 04:39 |
Pali | and how to generate first version of fstab? | 04:39 |
DocScrutinizer05 | well, maybe user generates it with mcedit? | 04:40 |
*** Pali has quit IRC | 04:47 | |
DocScrutinizer05 | either user changed his partitons then he needs to change his fstab. Or user didn't and we use standard fstab | 04:51 |
DocScrutinizer05 | I don't see the problem | 04:52 |
*** amiconn_ has joined #maemo-ssu | 05:54 | |
*** amiconn has quit IRC | 05:54 | |
*** amiconn_ is now known as amiconn | 05:55 | |
*** FlameReaper has quit IRC | 05:58 | |
*** DocScrutinizer05 has quit IRC | 06:02 | |
*** DocScrutinizer05 has joined #maemo-ssu | 06:02 | |
*** FlameReaper has joined #maemo-ssu | 06:23 | |
*** tadzik has joined #maemo-ssu | 08:39 | |
*** Mihanizat0r has joined #maemo-ssu | 09:28 | |
kerio | i already have a check against the generation of fstab in my rcS-late | 09:44 |
kerio | i made it so that fstab is recreated iff genfstab.awk exists | 09:45 |
kerio | then the only issue becomes mount_home, that checks for "/home ext3 rw" in /proc/mounts | 09:46 |
kerio | but that can be regexp'd | 09:46 |
kerio | what *can't* be regexp'd is the fsck.ext3 | 09:46 |
kerio | how does the automagical fsck work, i wonder | 09:47 |
*** LauRoman has joined #maemo-ssu | 09:49 | |
kerio | hm, at worst we could run fsck.`grep /home /etc/fstab | cut | awk '{print $2}'` | 09:52 |
kerio | anyway, if we eventually ship a kernel with ext4, we can just change all of those to "ext4", it's backwards-compatible | 09:59 |
*** Mihanizat0r has quit IRC | 10:22 | |
*** Vlad_on_the_road has joined #maemo-ssu | 10:29 | |
*** NIN101 has joined #maemo-ssu | 10:53 | |
*** Pali has joined #maemo-ssu | 11:08 | |
kerio | ohai Pali | 11:08 |
kerio | you missed my monologue regarding fstab :) | 11:09 |
Pali | hi | 11:09 |
Pali | kerio, we can use blkid or hal which tell us filesystem on mmc block device | 11:10 |
Pali | so hardcocded ext3/vfat can be fixed with blkid | 11:10 |
Pali | everywhere | 11:11 |
kerio | Pali: that doesn't involve having a real fstab | 11:11 |
Pali | but you can see that genfstab.awk reading MBR parittion id | 11:11 |
Pali | I think that good solution would be: add new config file with GENFSTAB= option | 11:12 |
Pali | which user can change | 11:12 |
Pali | kerio, but first we should solve how to determinate which partition is /home and which MyDocs | 11:13 |
kerio | what do you mean "determine"? | 11:13 |
Pali | which partition should be mounted to /home? | 11:14 |
Pali | and which to MyDocs? | 11:14 |
kerio | /dev/mmcblk0p2 | 11:14 |
kerio | /dev/mmcblk0p1 | 11:14 |
Pali | why? | 11:14 |
kerio | actually no, even better | 11:14 |
kerio | the partitions specified in /etc/fstab | 11:14 |
Pali | some people swapped p2 and p1 | 11:14 |
kerio | well those people should fix their fstab | 11:14 |
Pali | and because genfstab.awk reading MBR id, it generate correct fstab | 11:14 |
kerio | good, so the fstab is already correct | 11:15 |
*** FlameReaper has quit IRC | 11:16 | |
Pali | kerio, 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 eMMC | 11:18 |
Pali | without fixing rcS-late I was not able to boot 3.8 kernel | 11:18 |
kerio | Pali: does our "mount" understand UUIDs? | 11:18 |
Pali | so I think that static fstab is not good solution for booting more kernels | 11:18 |
kerio | it is | 11:18 |
kerio | mount by UUID | 11:19 |
Pali | UUID sounds like good idea, but | 11:19 |
kerio | and if you're going to boot 3.8 then you're outside of the realm of the normal user | 11:19 |
Pali | reformating MyDocs on windows will change fat uuid | 11:19 |
Pali | kerio, I want easy solution for booting upstream kernel | 11:19 |
Pali | and not changing tons of config before reboot | 11:19 |
kerio | and i want a pony | 11:20 |
kerio | fremantle has unspoken assumptions regarding the partition layout of /dev/mmcblk* | 11:20 |
Pali | it is not normal to change configs if you are going to boot another kernel | 11:20 |
kerio | but it's normal to change configs if you're going to swap hardware around | 11:20 |
kerio | which is what's effectively happening | 11:21 |
Pali | kerio, for some reason ke-recv correctly detected which mmc device is SD card | 11:21 |
Pali | and mounted it correctly | 11:21 |
Pali | it mounted /dev/mmcblk0p1 to /media/mmc1 | 11:21 |
Pali | so seems that SD card is not hardcoded for /dev/mmcblk1* | 11:22 |
kerio | yeah, the sd card can be automounted by ke-recv | 11: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-late | 11:24 |
Pali | yes | 11:24 |
kerio | and the UUID of /home doesn't change | 11:25 |
kerio | well | 11:25 |
kerio | hrmpf | 11:25 |
Pali | kerio, can we check if mc block device has root folder "user" before mouting? | 11:25 |
Pali | *mmc | 11:25 |
Pali | because in /home should be "user" | 11:26 |
kerio | we could mount and unmount if we're wrong, but that's bullshit | 11:26 |
kerio | "mkdir user" | 11:26 |
Pali | no, I mean that device which has "user" is /home | 11:26 |
kerio | yep, that's bullshit | 11:26 |
kerio | i could have multiple extfs partitions with a "user" directory | 11:27 |
Pali | now first partition with id '83' is mounted to /home | 11:27 |
kerio | in the correct device | 11:28 |
kerio | because of the HAL renaming | 11:28 |
Pali | udev doing renaming | 11:28 |
kerio | right, udev | 11:28 |
Pali | and rcS-late has hardcoded mmc0 | 11:28 |
kerio | well, make your 3.8 kernel's udev rename them too | 11:28 |
Pali | kerio, problem is that I do not know why that renaming udev rule not working | 11:29 |
Pali | I tried to check out why | 11:29 |
Pali | but I think that rule should work | 11:29 |
kerio | Pali: /dev/mmcblk0 being the eMMC and /dev/mmcblk1 being the uSD is an unwritten assumption in fremantle/n900 anyway | 11:29 |
Pali | kerio, yes, but this can be also easy fixed | 11:29 |
Pali | in /sys there is item which tell us if mmc device is interal or external | 11:30 |
kerio | i mean an assumption in every piece of (related to partitions) software | 11:30 |
Pali | script /bootmenu.sh doing it | 11:30 |
kerio | Pali: holy shit, our "mount" understands LABEL= | 11:31 |
Pali | I'm for this: Add option for user to stop generating fstab, but also fix autogenerating to support any filesystem | 11:32 |
Pali | btw is swapon reading swap partitions from /etc/fstab? | 11:33 |
kerio | yeah, rcS-late just does a swapon -a | 11:33 |
kerio | after it's generated | 11:33 |
Pali | if yes, this can solve also problem with adding more swaps | 11:33 |
kerio | i have, around the block of code that generates fstab: | 11:34 |
kerio | if [ -e /usr/lib/genfstab.awk ]; then | 11:34 |
kerio | but that can be changed to be something like if [ ! -e /etc/default/nogenfstab ]; then | 11:34 |
kerio | or something like that | 11:35 |
Pali | kerio, 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 |
kerio | Pali: linux doesn't care much about the partition type | 11:37 |
Pali | because I do not see any good solution how to generate fstab with MyDocs and home with any supported filesyetem | 11:37 |
kerio | MyDocs and mmc things are still handled by ke-recv | 11:37 |
kerio | MyDocs is the first partition with id 0c in the internal memory | 11:37 |
kerio | regardless of the actual file system | 11:37 |
kerio | (kinda ugly, but meh) | 11:38 |
Pali | kerio, yes this is reason why I do not like to see using MBR ids | 11:38 |
Pali | ok, 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 |
kerio | Pali: what's wrong with having a fixed partition order, anyway? | 11:40 |
Pali | users which already using switched partitions | 11:40 |
kerio | Pali: they won't need to move data around | 11:40 |
Pali | becase maemo system has support for that | 11:40 |
kerio | you can just change the partition order | 11:40 |
Pali | kerio, yes it is possible :-) | 11:41 |
kerio | fdisk will yell at you, but he'll do it | 11:41 |
Pali | but I think that (s)fdisk has no command for reordering partition | 11:41 |
kerio | Pali: whatever, change the ordering in some way | 11:41 |
kerio | delete the partitions and recreate them in the opposite order with the exact same start/end | 11:42 |
kerio | (but swapped) | 11:42 |
Pali | yes | 11:42 |
Pali | also u-boot has hardcoded first emmc partittion for bootmenu | 11:42 |
kerio | we should facilitate users who wish to customize their system like that, but we and they can't hope that everything will happen automagically | 11:42 |
Pali | I will try to remove hardcoded fat32 option | 11:42 |
kerio | Pali: so you're going to outright ignore the mbr partition type? | 11:43 |
kerio | Pali: also, how does the autodetect work? | 11:43 |
Pali | I do not see better solution... | 11:43 |
kerio | ext3 can be safely mounted as ext4 and then back | 11:43 |
kerio | but ext4 with extents won't be mountable as ext3 | 11:43 |
Pali | kerio, autodetect will read some bytes from partittion and detect type | 11:43 |
kerio | although the ext* status in the kernel is always weird like that | 11:44 |
kerio | and it's the same code anyway, right? | 11:44 |
Pali | run sudo blkid and will show all info | 11:44 |
Pali | it detecting correctly eveyrting on my device | 11:44 |
kerio | mine too | 11:44 |
*** M4rtinK has joined #maemo-ssu | 11:44 | |
kerio | Pali: how do i unmount/mount via ke-recv? | 11:45 |
kerio | like, MyDocs | 11:45 |
kerio | does ke-recv read /etc/default/mount-opts? | 11:45 |
kerio | ah crap, how should ke-recv handle mount-opts then? | 11:45 |
kerio | for its own partitions | 11:45 |
Pali | ke-recv calling osso-mmc-mount.sh | 11:45 |
Pali | it ignoring mount-opts | 11:46 |
Pali | also see script mmc-mount | 11:46 |
Pali | there are hardcoded options for vfat | 11:46 |
kerio | so everything ke-recv does is done through that script? | 11:47 |
kerio | regarding the mounts | 11:47 |
Pali | it should be done by osso-mmc-mount.sh | 11:47 |
Pali | there is implemented blacklist | 11:47 |
kerio | alright | 11:47 |
Pali | which seems to work | 11:47 |
kerio | what about the export? | 11:47 |
kerio | who specifies what to export? it's not written in the script | 11:48 |
Pali | export? | 11:48 |
kerio | mass storage mode | 11:48 |
Pali | ke-recv | 11:48 |
kerio | but where in the source? i wasn't able to find that | 11:48 |
Pali | sd card is in /media/mmc<num>p<num> | 11:48 |
kerio | that should be made configurable too, | 11:48 |
Pali | usb disk is in /media/usb/ | 11:48 |
Pali | kerio, no | 11:48 |
kerio | yes | 11:48 |
kerio | i have my swap on the uSD | 11:48 |
kerio | and the whole usd is exported | 11:48 |
kerio | and that's bullshit | 11:49 |
Pali | I must hardcoded that, becuase gkt, hildon, and closed file manager depends on these locations | 11:49 |
kerio | not the locations | 11:49 |
kerio | what to export via usb mass storage mode | 11:49 |
Pali | ah, you mean that | 11:49 |
kerio | also, file manager will happily list every directory in /media/ | 11:49 |
kerio | i do my nfs mounts there, and they're shown :3 | 11:49 |
Pali | ke-recv has check: if this is internal mmc device export only MyDocs else export full partittion | 11:50 |
Pali | maemo has configured only 2 luns in gadget driver | 11:50 |
Pali | so you can export only two devices | 11:50 |
kerio | while we're in the midst of having these customization helpings, we should try to make that configurable too | 11:51 |
kerio | Pali: at least a blacklist for exporting | 11:51 |
Pali | kerio, if swap is using I think that it will not be possible to export SD card | 11:51 |
kerio | Pali: i never tried to write on it, but the swap is exported | 11:51 |
kerio | i don't know if it's locked down and you can't write on it from the usb host | 11:52 |
kerio | but it's still terrifying | 11:52 |
Pali | swap is exported when using? | 11:52 |
kerio | the whole SD is exported | 11:52 |
Pali | yes | 11:52 |
kerio | i see the swap partition in the partition list in Disk Utility | 11:52 |
Pali | but it should be umounted | 11:52 |
kerio | well, it's not :) | 11:52 |
kerio | thankfully | 11:53 |
Pali | kerio, if you have swap partition on sd card, then swap is also exported | 11:53 |
Pali | because full mmc block device is exported | 11:53 |
kerio | yeah, but we could change that | 11:53 |
kerio | and by we i obviously mean you :P | 11:53 |
Pali | and how? | 11:53 |
kerio | Pali: how about a setting to "prefer single partition" in the export of the uSD | 11:53 |
kerio | if there's that setting, and there's a partition table, you export the first partition | 11:54 |
Pali | ok | 11:54 |
kerio | you 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 device | 11:54 |
kerio | Pali: make it threefold: export whole device (default), export single partition, no export | 11:55 |
kerio | with no export, you only export mydocs | 11:55 |
kerio | Pali: also, my sd is mounted in /media/mmc1, not /media/mmc1p1 | 11:58 |
Pali | kerio, yes, because one partition must be mounted to /media/mmc1 | 12:00 |
kerio | i see | 12:00 |
Pali | because camera (or another application, maybe modest) had hardcoded that path | 12:00 |
Pali | and ke-recv mounting first fat partition for /media/mmc1 | 12:00 |
Pali | if there is no fat, then first non fat is mounted | 12:00 |
kerio | alright | 12:01 |
kerio | Pali: btw, i successfully booted with no hardcoded devices in /etc/fstab :D | 12:02 |
kerio | Pali: does ke-recv depend on the reordering of devices? | 12:06 |
Pali | I do not know | 12:06 |
Pali | what is hardcoded in ke-recv | 12:06 |
kerio | anyway, i think that the invariant of the first partition must be somewhat preserved | 12:07 |
kerio | so if you want to reorder the partitions, you'll still have to keep the logical order preserved | 12:07 |
kerio | otherwise there's no way to support multiple filesystems | 12:08 |
kerio | Pali: LABEL= is great | 12:11 |
kerio | Pali: there's another issue in rcS-late, regarding the mount of /home | 12:12 |
kerio | does fsck also check the blkid | 12:18 |
kerio | ? | 12:18 |
*** kolp has joined #maemo-ssu | 12:18 | |
Pali | kerio, I do not know how fsck working | 12:20 |
Pali | but I remember that I damaged /home when I called fsck on it (without suffix) | 12:21 |
kerio | D: | 12:21 |
kerio | how do we handle mount_home in rcS-late then? | 12:21 |
Pali | it thought that /home was ext2 or ext4 and it not called fsck.ext3 | 12:21 |
kerio | Pali: well, ext4 tools are backwards-compatible with ext3 | 12:22 |
Pali | kerio, call fsck.<type> | 12:22 |
Pali | if application fsck.<type> not exists then ignore it | 12:22 |
kerio | and 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 ext4 | 12:22 |
Pali | kerio, look: https://wiki.maemo.org/CSSU_kernel_assess | 12:23 |
Pali | help with that page | 12:23 |
kerio | where are the config options? | 12:24 |
*** xes has joined #maemo-ssu | 12:25 | |
kerio | Pali: anyway, for your 3.8 kernel woes, use LABELs or UUIDs | 12:29 |
kerio | :) | 12:29 |
kerio | DocScrutinizer05: do you still have a vanilla n900? i want to know if the home partition has some label, by default | 12:30 |
Pali | kerio, 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.diff | 12:30 |
*** xes has quit IRC | 12:31 | |
*** xes has joined #maemo-ssu | 12:35 | |
*** xes has joined #maemo-ssu | 12:35 | |
kerio | xes: your IP is shown to the world before the hostmask cloak is applied | 12:59 |
*** LauRoman has quit IRC | 13:23 | |
*** xes has quit IRC | 13:32 | |
*** arcean has joined #maemo-ssu | 14:09 | |
*** MohammadAG has quit IRC | 14:29 | |
*** M13 has joined #maemo-ssu | 14:47 | |
*** xes has joined #maemo-ssu | 14:51 | |
*** xes has joined #maemo-ssu | 14:51 | |
kerio | Pali: do you have a rescueos image for linux 3.8? | 15:17 |
xes | /set irc_join_delay 8 | 15:39 |
kerio | xes: that's not the right way >:c | 15:49 |
xes | hi kerio! ...this ..wtf! | 15:49 |
kerio | the right way is to use SASL | 15:49 |
Pali | kerio, yes | 15:59 |
*** xes has left #maemo-ssu | 16:00 | |
*** xes has joined #maemo-ssu | 16:05 | |
*** xes has quit IRC | 16:09 | |
*** xes has joined #maemo-ssu | 16:16 | |
kerio | k, your ip didn't show | 16:17 |
xes | kerio: thanks ;) | 16:17 |
merlin1991 | now just ctcp something fun and you got his ip again :D | 16:18 |
*** merlin1991 has quit IRC | 16:19 | |
*** merlin1991 has joined #maemo-ssu | 16:20 | |
xes | np... lot of honey here.. yw | 16:21 |
Pali | kerio, can you check if this command will print all swap devices? $ blkid -c /dev/null -o device -t TYPE=swap | 16:54 |
kerio | Pali: yep | 16:55 |
Pali | ok, swap problem fixed :-) | 16:55 |
kerio | :D | 16:55 |
kerio | ...waaaaaaaaaait | 16:56 |
kerio | you mean when generating fstab, right? | 16:56 |
Pali | yes | 16:57 |
kerio | alright | 16:57 |
kerio | hm, i thought that it already scanned for swap partitions | 16:57 |
kerio | using the mbr type | 16:57 |
Pali | yes, it using mbr type | 16:58 |
Pali | but I want to remove this mbr... | 16:58 |
Pali | kerio, also I'm going to fix booting maemo5 from eMMC/SD card | 16:58 |
*** arcean_ has joined #maemo-ssu | 16:59 | |
Pali | = do not mount /home if root is not ubifs | 16:59 |
kerio | instead of using your time doing that, why not look for a way to do an early mount of /usr? | 17:01 |
kerio | or maybe checking out my patch to u-boot-tools >:c | 17:01 |
*** arcean has quit IRC | 17:02 | |
Pali | udev does not support /usr on different partition as / | 17:05 |
Pali | same problem is on desktops | 17:05 |
Pali | so this does not make sense | 17:05 |
kerio | ...wat | 17:05 |
Pali | if you really need it, write bootmenu script | 17:05 |
Pali | and boot your alternative system from /bootmenu.sh | 17:05 |
kerio | Pali: btw, why is MyDocs in fstab? | 17:08 |
Pali | I do not know | 17:08 |
Pali | maybe because mount /home/user/MyDocs ? | 17:08 |
Pali | to work | 17:08 |
kerio | i thought ke-recv did that | 17:08 |
*** Milhouse has joined #maemo-ssu | 17:14 | |
*** WizardNumberNext has joined #maemo-ssu | 17:19 | |
*** FlameReaper has joined #maemo-ssu | 17:20 | |
*** Martix has joined #maemo-ssu | 17:22 | |
kerio | Pali: will you also change mount_home to check for the appropriate file system and fsck with the appropriate fsck? | 17:29 |
Pali | yes, doing it too | 17:29 |
kerio | ^_^ | 17:29 |
*** dhbiker has joined #maemo-ssu | 17:36 | |
*** dhbiker has quit IRC | 17:50 | |
*** dhbiker has joined #maemo-ssu | 17:51 | |
*** NIN101 has quit IRC | 17:53 | |
*** NIN101 has joined #maemo-ssu | 18:02 | |
*** _rd has joined #maemo-ssu | 18:35 | |
*** lexicek has joined #maemo-ssu | 18:36 | |
*** _rd has quit IRC | 18:57 | |
Pali | kerio, in maemo we have script fremantle-format-internal-memory-card.sh | 18:58 |
*** _rd has joined #maemo-ssu | 18:58 | |
Pali | which doing: mkswap ${1}p1; mkfs.ext3 ${1}p2; mkdosfs -F 32 -R 38 ${1}p3 | 18:58 |
kerio | ...whaaaaaaaaat | 18:58 |
kerio | hm, why the reserved sectors, i wonder | 18:59 |
Pali | no idea | 18:59 |
Pali | and in this script is also: | 19:00 |
Pali | sfdisk -D -uM $1 << EOF | 19:00 |
Pali | ,768,S | 19:00 |
Pali | ,2048,L | 19:00 |
Pali | ,,b | 19:00 |
Pali | EOF | 19:00 |
Pali | eMMC and SD cards are big octopus in maemo... | 19:01 |
kerio | well, does anything call it? | 19:01 |
kerio | answer: no, because you can't lose /home/opt | 19:01 |
Pali | maybe that eMMC flasher | 19:02 |
Pali | I have maemo rootfs in nandsim on desktop | 19:03 |
Pali | going grep | 19:03 |
Pali | ok, nothing it calling | 19:03 |
Pali | that string is only in var/lib/dpkg/info/ke-recv.list and var/lib/dpkg/info/ke-recv.md5sums | 19:03 |
kerio | Pali: maybe the path is built :P | 19:04 |
Pali | kerio, swap is by default on p3? | 19:05 |
kerio | yep | 19:05 |
Pali | mydocs on p1 | 19:05 |
Pali | and /home on p2? | 19:05 |
kerio | yeah | 19:05 |
Pali | ok | 19:05 |
kerio | you know, i think i know why that script was made like it is | 19:05 |
kerio | it's so it makes precisely 768mb and 2gb for swap and home | 19:05 |
kerio | and then the rest of the 29ish gbs are for mydocs | 19:05 |
kerio | but it's definetely from the preopt phase | 19:06 |
*** dhbiker has quit IRC | 19:10 | |
*** dafox has joined #maemo-ssu | 19:12 | |
*** xes has quit IRC | 19:23 | |
Pali | kerio, now I found that ke-recv has code for enabling/disabling swap partitions on mmc devices | 19:35 |
Pali | but nokia decided to disable that code for PR1.2 (or 1.1) | 19:36 |
kerio | yeah, i'm not sure it's worth using | 19:36 |
kerio | what do you mean by disabled? commented out/ifdeffed out? | 19:36 |
kerio | or just not used? | 19:36 |
Pali | #if 0 | 19:36 |
kerio | meh | 19:37 |
kerio | i'm fairly sure that automatically changing swap partitions is a recipe for disaster | 19:37 |
Pali | void function() { \n #if 0 \n ..... \n #endif \n } | 19:37 |
Pali | yes | 19:37 |
Pali | kerio, are you sure that maemo system export via usb live swap partition? | 19:39 |
ShadowJK | the automatic swap thing is probably remnant from Diablo | 19:39 |
kerio | Pali: yep, /dev/mmcblk1 is exported without any thought | 19:40 |
kerio | and /dev/mmcblk1p2 is a swap partition | 19:40 |
kerio | *the* swap partition | 19:40 |
Pali | kerio, ok at least I will add check and disable exporting whole device via usb | 19:41 |
kerio | Pali: which check? | 19:41 |
Pali | if there is active swap partittion on sd card | 19:41 |
kerio | that's silly | 19:41 |
kerio | and awfully specific | 19:41 |
kerio | make it configurable :( | 19:41 |
Pali | you should not export live block device via usb | 19:41 |
kerio | hm, good point | 19:42 |
kerio | check if /dev/mmcblk1 is anywhere in /proc/mounts or /proc/swaps | 19:42 |
kerio | or just export the first partition where available | 19:42 |
kerio | i'm fairly sure that the whole point of exporting the whole sd is to deal with superfloppies | 19:43 |
kerio | but if there's a partition table... | 19:43 |
kerio | idk | 19:43 |
kerio | Pali: is there code in ke-recv to disable a swap partition? | 19:44 |
Pali | yes | 19:45 |
Pali | but I do not know if working | 19:45 |
Pali | it is commented | 19:45 |
Pali | kerio, I have more partitions on sd card (ext4 also vfat) | 19:46 |
Pali | it make sense to export both | 19:46 |
kerio | hm | 19:46 |
Pali | but I will add some config option later | 19:46 |
kerio | isn't it easier to add the config options instead of the check? | 19:46 |
Pali | no :-) | 19:46 |
kerio | Pali: also, check if the activated swap partition is writable | 19:46 |
kerio | from the host | 19:47 |
kerio | fg | 19:47 |
kerio | sorry, wrong window | 19:47 |
*** povbot has joined #maemo-ssu | 19:57 | |
*** ChanServ sets mode: +v povbot | 19:57 | |
Pali | kerio, I have first version of rcS-late | 20:02 |
Pali | do you want to check it? | 20:02 |
kerio | sure | 20:03 |
Pali | kerio, here is code: http://pastebin.com/36TGSTL6 and http://pastebin.com/GEczDFw2 | 20:05 |
kerio | Pali: what the fuck, you don't mount ubifs with commit=1 | 20:06 |
Pali | ubifs is mounted by kernel | 20:06 |
Pali | see /proc/cmdline | 20:07 |
kerio | Pali: aaaaand fsck fails :) | 20:08 |
kerio | also, -p is only for e2fsck really | 20:09 |
kerio | Pali: my "HOME_DEV" is "LABEL=N900_optfs" | 20:09 |
Pali | I did not tested that script yet | 20:09 |
Pali | kerio: on which line? | 20:10 |
kerio | line 15 of rcS-late | 20:10 |
kerio | also, isn't there a shorter way of specifying [^\ ]* in regexps? | 20:11 |
kerio | like \w or something | 20:11 |
Pali | I do not know what working in busybox's sed :D | 20:12 |
kerio | yeah, \w is all alphanumericals | 20:12 |
kerio | grep " /home " /etc/fstab | cut -f2 -d" " | 20:13 |
kerio | er, not f2, f1 | 20:13 |
kerio | and you can just grep for " /home $HOME_TYPE rw" at that point | 20:14 |
kerio | i think that rw and ro are always at the beginning of the mount options | 20:14 |
Pali | kerio, " /home " will not work, because you can use tabs instead spaces | 20:14 |
kerio | at least, that's what the nokia rcS-late was expecting | 20:14 |
kerio | Pali: hmm, good point | 20:14 |
Pali | kerio, show me your fstab | 20:15 |
Pali | and also output of sed -n 's/^\([^\ ]*\)\s\s*\/home\s\s*.*$/\1/p' /etc/fstab | head -1 | 20:15 |
*** _rd has quit IRC | 20:16 | |
kerio | are you sure you want to see my fstab? :D | 20:17 |
kerio | http://pastebin.mozilla.org/2145595 | 20:17 |
Pali | ah, LABEL=... | 20:18 |
kerio | Pali: i'm not entirely sure that fscking at every boot is good, anyway | 20:19 |
kerio | i mean, unattended fscks are bad anyway | 20:19 |
Pali | kerio, see fsck.ext3 -p | 20:19 |
Pali | kerio, ext devices should be fscked | 20:19 |
kerio | hm | 20:20 |
kerio | why? :( | 20:20 |
*** FlameReaper has quit IRC | 20:20 | |
*** M13 is now known as Guest85097 | 20:20 | |
kerio | Pali: also, -a is also valid for fsck.vfat | 20:20 |
kerio | and most fscks | 20:20 |
Pali | if device is clean and counter is ok fsck.ext will skip full check | 20:21 |
kerio | Pali: hm, why "0 2" and not "0 0"? | 20:22 |
Pali | 0 - does not check device, 1 - check rootfs device as first, 2 - check non roofs device | 20:23 |
Pali | man fstab | 20:23 |
kerio | yeah but nothing parses fstab like that in maemo | 20:23 |
kerio | actually, who's responsible for parsing fstab and mounting, in normal systems | 20:24 |
kerio | init? | 20:24 |
Pali | systemd :D | 20:24 |
kerio | oh, it's mountall | 20:25 |
kerio | which isn't used in fremantle | 20:25 |
Pali | on ubuntu it doing mountall | 20:25 |
Pali | on other systems maybe initscript which calling mount -a | 20:25 |
Pali | and fsck | 20:25 |
Pali | global fsck parsing fstab too | 20:25 |
kerio | Pali: instead of figuring out device and type, use fsck | 20:26 |
kerio | the generic one | 20:26 |
Pali | I used it | 20:26 |
Pali | once and it damaged my /home | 20:26 |
kerio | you used it once | 20:26 |
Pali | it not detecing ext3/ext4 correctly | 20:27 |
kerio | Pali: that's impossible | 20:27 |
kerio | it's **the same binary** | 20:27 |
Pali | if you call fsck.ext4 and fsck.ext3 it doing different... | 20:28 |
Pali | e2fck checking argv0 | 20:28 |
kerio | ...woah i really hope they're hardlinked | 20:30 |
kerio | /sbin/e2fsck, /sbin/fsck.ext3 and /sbin/fsck.ext4 have the same md5sum | 20:30 |
kerio | how do i check if they're hardlinked to the same file? | 20:30 |
kerio | Pali: they're the same binary, it just has different argument parsing | 20:31 |
Pali | kerio, use stat | 20:31 |
Pali | and check inode number | 20:31 |
kerio | anyway, there's no way to specify the "version" of ext* to e2fsck | 20:32 |
kerio | so i can only assume that fsck.ext* are effectively interchangeable | 20:32 |
kerio | Pali: as a bonus, `fsck` works with LABEL and UUID too | 20:33 |
kerio | if the man page is to be believed | 20:33 |
*** _rd has joined #maemo-ssu | 20:41 | |
kerio | Pali: will you also update mmc-mount so that it uses the options in /etc/default/mount-opts? | 20:45 |
Pali | yes | 20:45 |
Pali | I have it too | 20:45 |
kerio | anyway, fsck LABEL=foo works fine | 20:45 |
Pali | kerio: http://pastebin.com/eZRvCsWG | 20:48 |
kerio | neat :D | 20:48 |
kerio | Pali: srsly though, why is mydocs in fstab | 20:56 |
Pali | kerio, because something is calling only mount /home/user/MyDocs | 20:59 |
kerio | Pali: could you grep for that in your rootfs copy? | 20:59 |
Pali | hm, seems that nothing in PR1.3 rootfs | 21:00 |
Pali | maybe some extras-devel app... | 21:00 |
kerio | Pali: btw, you're forgetting to not call mount_home if /home is not on a separate partition in that version of rcS-late you pastebinned | 21:03 |
Pali | yes, mount_home should not do anything if /home missing in etc/fstab | 21:05 |
kerio | Pali: mount_home should return error if there's no /home in /etc/fstab | 21:05 |
Pali | kerio, no | 21:05 |
kerio | mount_home should *not be called* if /home shouldn't be in /etc/fstab | 21:05 |
kerio | yes | 21:05 |
kerio | because if root_is_ubifs then we want a /home | 21:06 |
kerio | we *need* a /home | 21:06 |
Pali | root_is_ubifs is used only for generating fstab | 21:06 |
Pali | if you do not want to rewrite fstab you should respect all lines | 21:06 |
Pali | and if someting is not present in fstab then you should not report error and not reboot device | 21:07 |
kerio | hm | 21:07 |
kerio | the thing is, there's really no facility to properly report catastrophical errors, wait for user acknowledgement, and halt | 21:08 |
Pali | kerio, if mount_home fails, dsme/upstart/... rebooting device | 21:09 |
kerio | yeah | 21:09 |
kerio | which leaves the user with a weird "?" face | 21:09 |
kerio | Pali: where is user_fsck used? in mmc-mount? | 21:15 |
kerio | can vfat do something similar to the quick preening? | 21:16 |
kerio | Pali: also, do we really want to run fsck -y *ever* in our system? | 21:17 |
Pali | kerio, I'd like to implement user_fsck in ke-recv/mmc-mount | 21:20 |
Pali | and I do not know | 21:20 |
Pali | maybe we should look at some linux desktop distribution what is doing with fat | 21:21 |
kerio | most definetely not doing an unattended "fix all" run | 21:21 |
kerio | in fact, make the "hail mary" /home fsck configurable too | 21:22 |
*** Guest85097 has quit IRC | 21:30 | |
kerio | DocScrutinizer05: remove the "hail mary" fsck -y that will probably do more bad than good in mount_home? | 21:50 |
DocScrutinizer05 | eh? | 21:51 |
kerio | pali is revolutioning the fstab thing, i'm helping a bit | 21:52 |
kerio | in rcS-preinit, the part that mounts /home tries to mount, and if it fails to do so it runs a fsck -y on it | 21:53 |
kerio | and i'm not sure if we actually want to ever risk running "fsck -y" on *anything* | 21:54 |
kerio | Pali's modifications will allow the user to configure whether or not to run a fsck -a (automatic but only "safe" options) on home before mounting | 21:55 |
kerio | which is much, much better | 21:55 |
kerio | should we also keep the code that runs the POTENTIALLY DESTRUCTIVE AND COULD DO A LOT MORE DAMAGE fsck? | 21:55 |
Pali | now I found that kernel-power-settings inject rcS-late script and calling fsck.ext3 on /home | 21:56 |
Pali | this will be deleted from kernel-power-settings too | 21:57 |
Pali | ~seen t-tan | 21:57 |
infobot | Pali: i haven't seen 't-tan' | 21:57 |
DocScrutinizer05 | kerio: 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 reboot | 22:01 |
*** nox- has joined #maemo-ssu | 22:02 | |
kerio | DocScrutinizer05: a fsck -y can do a lot more harm than good | 22:11 |
kerio | instead of letting you mount read-only, and recover data, it can fuck the filesystem up | 22:11 |
kerio | hm, what's the decision process for something like this? | 22:12 |
kerio | DocScrutinizer05: 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 backup | 22:13 |
DocScrutinizer05 | pretty simple, if system can't boot there is no option | 22:13 |
DocScrutinizer05 | ack for backup | 22:13 |
DocScrutinizer05 | also ack for giving user a choice | 22:13 |
kerio | DocScrutinizer05: "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 |
DocScrutinizer05 | and also ack for fsck -a rather than -y | 22:14 |
kerio | DocScrutinizer05: no, the preening will happen *before* the mounting | 22:14 |
kerio | (and takes very little to no time, on a clean journaled system) | 22:14 |
kerio | thus, it's not very useful to *redo* it | 22:14 |
*** lexicek has quit IRC | 22:17 | |
DocScrutinizer05 | when /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 more | 22:21 |
kerio | DocScrutinizer05: yeah but stopping and saying "nope" is a much better option than blindly going ahead with a fsck -y | 22:22 |
kerio | for the user's data | 22:22 |
DocScrutinizer05 | so 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 it | 22:22 |
DocScrutinizer05 | if 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 user | 22:24 |
kerio | sure there is! | 22:25 |
kerio | #maemo! | 22:25 |
kerio | :3 | 22:25 |
DocScrutinizer05 | or 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 fsck | 22:25 |
kerio | besides, checking /proc/mounts is probably the result of cargo computing | 22:30 |
kerio | you can check the return value | 22:31 |
kerio | although to be fair i don't know if it has a different return value if "corrupted fs, mounted read-only" happens | 22:33 |
*** Martix has quit IRC | 22:37 | |
*** Martix has joined #maemo-ssu | 22:38 | |
kerio | Pali: hm, what does the "check" option do, when mounting ext*? | 22:38 |
Pali | which check option? | 22:39 |
kerio | "check" :) | 22:39 |
kerio | no, wait | 22:39 |
kerio | ...why are the only valid possibilities "none" and "nocheck"? :s | 22:39 |
kerio | nevermind :) | 22:41 |
*** Martix has quit IRC | 22:49 | |
*** Martix has joined #maemo-ssu | 22:50 | |
*** Martix has quit IRC | 22:51 | |
*** Martix has joined #maemo-ssu | 22:52 | |
*** _rd has quit IRC | 23:06 | |
*** Martix has quit IRC | 23:06 | |
*** Martix has joined #maemo-ssu | 23:09 | |
*** Martix_ has joined #maemo-ssu | 23:12 | |
*** Martix has quit IRC | 23:15 | |
*** _rd has joined #maemo-ssu | 23:27 | |
*** arcean__ has joined #maemo-ssu | 23:48 | |
*** arcean_ has quit IRC | 23:50 | |
*** LauRoman has joined #maemo-ssu | 23:50 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!