--- old/usb_modeswitch.tcl 1970-01-01 01:00:00.000000000 +0100 +++ usb_modeswitch.tcl 2019-06-12 08:39:42.140000000 +0200 @@ -41,7 +41,7 @@ global scsi usb config match device flags setup devdir loginit set flags(config) "" -Log "[ParseGlobalConfig]" +Log "[ParseGlobalConfig $argv]" if {$flags(stordelay) > 0} { SetStorageDelay $flags(stordelay) @@ -496,9 +496,21 @@ # end of proc {MatchDevice} -proc {ParseGlobalConfig} {} { +proc {ParseGlobalConfig} {argv} { global flags + +set configFileParam "" +for {set i 0} {$i < [llength $argv]} {incr i} { + switch -glob -- [set v [lindex $argv $i]] { + --config-file=* { + set configFileParam $v + } + } +} +if {$configFileParam != ""} { + set configFile [string range $configFileParam [string length "--config-file="] end] +} else { set configFile "" set places [list /etc/usb_modeswitch.conf /etc/sysconfig/usb_modeswitch /etc/default/usb_modeswitch] foreach cfg $places { @@ -507,6 +519,7 @@ break } } +} if {$configFile == ""} {return} set rc [open $configFile r] utsummaryrefslogtreecommitdiff
path: root/gnu/system/linux-container.scm
AgeCommit message (Expand)Author
2023-06-24linux-container: Pass '--disable-chroot' to 'guix-daemon'....This allows for the use of Guix within a non-privileged Docker container produced by 'guix system image -t docker'. * gnu/system/linux-container.scm (containerized-operating-system): Change 'guix-configuration' to add "--disable-chroot". Ludovic Courtès
2023-06-09linux-container: Adjust to 'modify-services' semantic change....This is a followup to dbbc7e946131ba257728f1d05b96c4339b7ee88b: 'nscd-service-type' isn't necessarily present in OS, so we cannot use the 'modify-services' as it would now error out. This was happening with the "guix system docker-image" test in 'tests/guix-system.sh'. * gnu/system/linux-container.scm (containerized-operating-system): Use 'filter-map' instead of 'remove' + 'modify-services'. Ludovic Courtès
2023-03-26linux-container: Remove hosts-service-type when network is shared....Fixes <https://issues.guix.gnu.org/61627>. * gnu/system/linux-container.scm (container-essential-services): When shared-network? is true, remove the hosts-service-type service kind. Pierre Langlois
2022-12-01linux-container: Do not replace nscd-service-type....* gnu/system/linux-container.scm (containerized-operating-system): Respect customizations to the nscd-service-type and only modify the caches field. Ricardo Wurmus
2022-08-09linux-container: container-script: Parse command line options....* gnu/system/linux-container.scm (container-script): Accept command line options to bind mount host directories into the container. * doc/guix.texi (Invoking guix system): Document options. Ricardo Wurmus
2022-05-31gnu: Remove wicd....The last release is from 2017, stuck on Python 2. * gnu/packages/wicd.scm: Delete file. * gnu/packages/patches/wicd-bitrate-none-fix.patch: Delete file. * gnu/packages/patches/wicd-get-selected-profile-fix.patch: Likewise. * gnu/packages/patches/wicd-urwid-1.3.patch: Likewise. * gnu/packages/patches/wicd-wpa2-ttls.patch: Likewise. * gnu/local.mk: De-register them. * gnu/services/networking.scm: Remove wicd service... * doc/guix.texi: ... and its documentation. * gnu/system/linux-container.scm (containerized-operating-system) <services-to-drop>: Remove wicd-service-type. Maxim Cournoyer
2022-03-19linux-container: Add #:guest-uid and #:guest-gid to 'eval/container'....* gnu/system/linux-container.scm (eval/container): Add #:guest-uid and #:guest-gid and honor them. Ludovic Courtès
2022-03-19linux-container: 'eval/container' honors #:namespaces....* gnu/system/linux-container.scm (eval/container): Pass #:namespaces to 'call-with-container'. Ludovic Courtès