search for: machine_id

Displaying 20 results from an estimated 34 matches for "machine_id".

2007 Sep 28
2
form action url example
...nse.should have_tag( "form[action=?]", ''/users/1/machines/1/trouble_tickets'') end for a form like so: <% form_for( :trouble_ticket, :url => { :action => ''create'', :user_id => @machine.current_owner, :machine_id => @machine } ) do |f| %> ... Now this fails. The way it will pass is to change the url parameters to _explicitly_ call the id method on the parameter values like so: <% form_for( :trouble_ticket, :url => { :action => ''create'', *:user_id => @machi...
2015 Jul 29
0
[PATCH 2/2] sysprep: machine_id: handle /var/lib/dbus/machine-id
Another machine-id file, used by D-Bus. --- sysprep/sysprep_operation_machine_id.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sysprep/sysprep_operation_machine_id.ml b/sysprep/sysprep_operation_machine_id.ml index 190ca5b..dbf8ce2 100644 --- a/sysprep/sysprep_operation_machine_id.ml +++ b/sysprep/sysprep_operation_machine_id.ml @@ -24,7 +24,8 @@ modu...
2015 Jul 29
2
[PATCH 1/2] sysprep: machine_id: simplify implementation
Instead of rm + touch, just truncate the file if existing. In case there was no file previously, now nothing is created, as most probably the system was fine even without it. Also, turn the single path into a list, so more machine-id files can be handled at once. --- sysprep/sysprep_operation_machine_id.ml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/sysprep/sysprep_operation_machine_id.ml b/sysprep/sysprep_operation_machine_id.ml index fbcc692..190ca5b 100644 --- a/sysprep/sysprep_operation_machine_id.ml +++ b/sysprep/sysprep_operation_machine_id.ml @@ -21,15 +2...
2019 May 24
3
[PATCH] (vesa)menu.c32: Add support for BLS
...@@ -1060,6 +1066,337 @@ do_include: } } +/* + * https://systemd.io/BOOT_LOADER_SPECIFICATION + * #type-1-boot-loader-specification-entries + */ +struct blsdata { + const char *title; + const char *version; + char *version0; /* version string padded with zeros */ + const char *machine_id; + const char *linux_; + const char *initrd; + const char *efi; + char *options; + const char *devicetree; + const char *architecture; + char *sort_field; /* used internally for sorting */ + const char *filename; +}; + +static void clear_bls_data(struct blsdata *bd) +{ +...
2017 Mar 10
1
[PATCH] appliance: run systemd-tmpfiles also for /var/run
...run instead of /run. As result, include also /var/run in the systemd-tmpfiles execution. --- appliance/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appliance/init b/appliance/init index b951857..968429c 100755 --- a/appliance/init +++ b/appliance/init @@ -90,7 +90,7 @@ machine_id=$(dd if=/dev/urandom bs=16 count=1 status=none | od -x -A n) echo "${machine_id// /}" > /etc/machine-id # Set up tmpfiles (must run after kmod.conf is created above). -systemd-tmpfiles --prefix=/dev --prefix=/run --create --boot +systemd-tmpfiles --prefix=/dev --prefix=/run --prefi...
2019 May 25
2
[PATCH] (vesa)menu.c32: Add support for BLS
...{ > > + refstr_put(bd->version); > > + bd->version = refstrdup(skipspace(p + 7)); > > + bd->version0 = padver(bd->version); > > + } else if (looking_at(p, "machine-id")) { > > + refstr_put(bd->machine_id); > > + bd->machine_id = refstrdup(skipspace(p + 10)); > > + } else if (looking_at(p, "linux")) { > > + refstr_put(bd->linux_); > > + bd->linux_ = refstrdup(skipspace(p + 5)); > > + } else if (looking_at...
2019 May 25
0
[PATCH] (vesa)menu.c32: Add support for BLS
...(p, "version")) { > + refstr_put(bd->version); > + bd->version = refstrdup(skipspace(p + 7)); > + bd->version0 = padver(bd->version); > + } else if (looking_at(p, "machine-id")) { > + refstr_put(bd->machine_id); > + bd->machine_id = refstrdup(skipspace(p + 10)); > + } else if (looking_at(p, "linux")) { > + refstr_put(bd->linux_); > + bd->linux_ = refstrdup(skipspace(p + 5)); > + } else if (looking_at(p, "initrd"))...
2006 Apr 25
3
belongs_to and has_many
I know this has been rehashed many times, but I don''t get it. I can''t find it documented to were I understand all the parts. I can make this work using Rails database design conventions, but in this case I am not able to do that. I find examples, but the ones I find do not follow the conventions. They also do not give enough information to understand what is going on. In
2016 Jul 26
5
[PATCH v2 0/4] Improve LVM handling in the appliance
Hi, this series improves the way LVM is used in the appliance: in particular, now lvmetad can eventually run at all, and with the correct configuration. Also improve the listing strategies. Changes in v2: - dropped patch #5, will be sent separately - move lvmetad statup in own function (patch #2) Thanks, Pino Toscano (4): daemon: lvm-filter: set also global_filter daemon: lvm-filter:
2019 Jul 09
0
[PATCH] core: Add support for BLS Type 1 entries
...(strcmp(fieldname, "title") == 0) + return bd->title; + if (strcmp(fieldname, "version") == 0) + return bd->version; + if (strcmp(fieldname, "version0") == 0) + return bd->version0; + if (strcmp(fieldname, "machine-id") == 0) + return bd->machine_id; + if (strcmp(fieldname, "linux") == 0) + return bd->freax; + if (strcmp(fieldname, "initrd") == 0) + return bd->initrd; + if (strcmp(fieldname, "efi") == 0) + return bd->efi; + if (strcmp(fieldname, "options") == 0) + return bd->optio...
2019 May 27
0
[PATCH] (vesa)menu.c32: Add support for BLS
...refstr_put(bd->version); > > > + bd->version = refstrdup(skipspace(p + 7)); > > > + bd->version0 = padver(bd->version); > > > + } else if (looking_at(p, "machine-id")) { > > > + refstr_put(bd->machine_id); > > > + bd->machine_id = refstrdup(skipspace(p + 10)); > > > + } else if (looking_at(p, "linux")) { > > > + refstr_put(bd->linux_); > > > + bd->linux_ = refstrdup(skipspace(p + 5)); > > > +...
2016 Jul 26
0
[PATCH 5/5] appliance: run systemd-tmpfiles also for /run
...ations available. In particular, setting up correctly the lvm bits allow lvmetad to run. --- appliance/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appliance/init b/appliance/init index d440007..e678e42 100755 --- a/appliance/init +++ b/appliance/init @@ -88,7 +88,7 @@ machine_id=$(dd if=/dev/urandom bs=16 count=1 status=none | od -x -A n) echo "${machine_id// /}" > /etc/machine-id # Set up tmpfiles (must run after kmod.conf is created above). -systemd-tmpfiles --prefix=/dev --create --boot +systemd-tmpfiles --prefix=/dev --prefix=/run --create --boot #...
2016 Jul 26
0
[PATCH 4/4] appliance: run systemd-tmpfiles also for /run
...ations available. In particular, setting up correctly the lvm bits allow lvmetad to run. --- appliance/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appliance/init b/appliance/init index d440007..e678e42 100755 --- a/appliance/init +++ b/appliance/init @@ -88,7 +88,7 @@ machine_id=$(dd if=/dev/urandom bs=16 count=1 status=none | od -x -A n) echo "${machine_id// /}" > /etc/machine-id # Set up tmpfiles (must run after kmod.conf is created above). -systemd-tmpfiles --prefix=/dev --create --boot +systemd-tmpfiles --prefix=/dev --prefix=/run --create --boot #...
2016 Jul 26
8
[PATCH 0/5] Improve LVM handling in the appliance
Hi, this series improves the way LVM is used in the appliance: in particular, now lvmetad can eventually run at all, and with the correct configuration. Also improve the listing strategies. Thanks, Pino Toscano (5): daemon: lvm-filter: set also global_filter daemon: lvm-filter: start lvmetad better daemon: lvm: improve filter for LVs with activationskip flag set daemon: lvm: list
2012 Sep 03
2
[PATCH] sysprep: remove hostname from ifcfg-*
...eate mode 100644 sysprep/sysprep_operation_net_hostname.ml diff --git a/po/POTFILES-ml b/po/POTFILES-ml index 76043a0..c9422fb 100644 --- a/po/POTFILES-ml +++ b/po/POTFILES-ml @@ -27,6 +27,7 @@ sysprep/sysprep_operation_logfiles.ml sysprep/sysprep_operation_lvm_uuids.ml sysprep/sysprep_operation_machine_id.ml sysprep/sysprep_operation_mail_spool.ml +sysprep/sysprep_operation_net_hostname.ml sysprep/sysprep_operation_net_hwaddr.ml sysprep/sysprep_operation_pacct_log.ml sysprep/sysprep_operation_package_manager_cache.ml diff --git a/sysprep/Makefile.am b/sysprep/Makefile.am index 2ee9abf..46b8309 1...
2012 Aug 08
1
[PATCH] sysprep: remove the process accounting log files
...nged, 63 insertions(+), 3 deletions(-) create mode 100644 sysprep/sysprep_operation_pacct_log.ml diff --git a/po/POTFILES-ml b/po/POTFILES-ml index 11aab05..7f75dc8 100644 --- a/po/POTFILES-ml +++ b/po/POTFILES-ml @@ -26,6 +26,7 @@ sysprep/sysprep_operation_lvm_uuids.ml sysprep/sysprep_operation_machine_id.ml sysprep/sysprep_operation_mail_spool.ml sysprep/sysprep_operation_net_hwaddr.ml +sysprep/sysprep_operation_pacct_log.ml sysprep/sysprep_operation_package_manager_cache.ml sysprep/sysprep_operation_pam_data.ml sysprep/sysprep_operation_puppet_data_log.ml diff --git a/sysprep/Makefile.am b/sy...
2020 May 07
0
[PATCH v2 2/2] sysprep: add Kerberos keytab file removal
...erberos_hostkeytab.ml diff --git a/sysprep/Makefile.am b/sysprep/Makefile.am index 43137ce65..95cc7e358 100644 --- a/sysprep/Makefile.am +++ b/sysprep/Makefile.am @@ -44,6 +44,7 @@ operations = \ firewall_rules \ fs_uuids \ kerberos_data \ + kerberos_hostkeytab \ lvm_uuids \ logfiles \ machine_id \ diff --git a/sysprep/sysprep_operation_kerberos_hostkeytab.ml b/sysprep/sysprep_operation_kerberos_hostkeytab.ml new file mode 100644 index 000000000..cb3023353 --- /dev/null +++ b/sysprep/sysprep_operation_kerberos_hostkeytab.ml @@ -0,0 +1,38 @@ +(* virt-sysprep + * Copyright (C) 2020 Red Hat In...
2016 Jul 27
0
How to convert /etc/machine-id into a default-duid for IPv6 static DHCP?
...ses MAC addresses for static DHCP. How does one convert /etc/machine-id to a default-duid (in bash)? 1) /etc/machine-id -> DUID: <read RFC6355 and try to grasp the NetworkManager code at [0] & [1]> Use sha256 hash of machine-id, use first 128 bits, add colons and prepend 00:04: $ MACHINE_ID_SHA256=`cat /etc/machine_id | sha256sum | cut -c1-32` $ TMPID=$(sed -e 's/.\{2\}/&:/g;s/.$//' <<<$MACHINE_ID_SHA256) $ DUID=00:04:`echo $TMPID` Correct? 2) convert $DUID to a default-duid. Example value of default-duid can be found in /var/lib/NetworkManager/dhclient6-<st...
2004 Aug 27
0
3.0.6-1 and XP SP2
...l. On the re-boot I get "Please wait while the domain list is created" presented which persists for ~ 10 minutes. I'm still unable to log into the domain, though local logins are OK. Checking a level 10 log I could see that the following error: getsmbfilepwent: LM password for user machine_id$ invalidated So I deleted the entry from smbpasswd and added it manually. That resolved the getsmbfilepwent error, though I still can't log in. The next error is against a credential check: [2004/08/27 15:06:52, 5] libsmb/credentials.c:cred_create(96) calc_cred: 4C55AE65FC7C1DAF [2004/08/...
2010 Jan 20
0
need help with nested forms and habtm
...c info ### I''ve got following model associations: Customer has_many :inquiries attr_accessible :inquiry_ids accepts_nested_attributes_for :inquiries Inquiry belongs_to :customer has_and_belongs_to_many :machines accepts_nested_attributes_for :machines attr_accessible :machine_ids Machine has_and_belongs_to_many :inquiries I''m on Rails 2.3.5 and formtastic 0.9.7 ### What I want ### I wanted to build a nested form (using formtastic + haml), so a User could enter his data and create an inquiry regarding several machines (he put into a cart in advance) so I set...