/usr/sbin/autorun and 'subdir=' cmdline option

Post there if you plan to contribute to this SystemCd
hondza
Posts: 6
Joined: 04 Oct 2009, 11:23

/usr/sbin/autorun and 'subdir=' cmdline option

Postby hondza » 15 Nov 2009, 12:31

AFAICT sysrcd doesn't look for autoruns in /mnt/cdrom/${subdir} when 'docache' is not specified. I tried to update /usr/sbin/autorun to do so. Untested but I believe it should work.

Code: Select all

--- autorun.old 2009-11-15 13:08:03.638419088 +0100
+++ autorun     2009-11-15 13:12:31.043423725 +0100
@@ -92,6 +92,9 @@
       
        # ---- brutal kernel args parsing ----
        for opt in cmdline.split():
+               if re.match('^subdir=', opt):
+                       param=opt.replace('subdir=','')
+                       defaultsrc.insert(0, '/mnt/cdrom/' + param)
                if re.match('^ar_nowait$', opt):
                        ar_nowait='y'
                if re.match('^ar_nodel$', opt):



Hope it helps.

hondza
Posts: 6
Joined: 04 Oct 2009, 11:23

Re: /usr/sbin/autorun and 'subdir=' cmdline option

Postby hondza » 19 Dec 2009, 16:16

bump

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Re: /usr/sbin/autorun and 'subdir=' cmdline option

Postby admin » 19 Dec 2009, 18:48

Change applied to sysresccd-1.3.4-beta9


Return to “Contributions”

Who is online

Users browsing this forum: No registered users and 0 guests